digitalpoint
Well-known member
What version of PHP are you using? Some of the older (like PHP 5.2.x) had some issues with UTF-8 data sometimes when trying to encode certain characters.Getting a couple of these recently, any idea what could cause this (from Server Error Log):
Error Info:
Stack Trace:
Request State:
If you are using PHP >= 5.3.x, try going into the library/XenForo/ViewRenderer/Json.php file and change this line:
PHP:
return json_encode($input);
to this:
PHP:
return json_encode(utf8_encode($input));
We are relying on the XenForo JSON encoder function, so the fix for bad data being passed to it may have to come from XF (the above change).