What is the best collation when using JSON and some special characters
This question already has an answer here:
For all those wondering how to solve the problem with french characters and JSON trust me I've tried everything these days the only thing that works is :
echo json_encode(array("server_response"=>$response), JSON_UNESCAPED_UNICODE);
here's the link for more information http://php.net/manual/fr/function.json-encode.php thank god for that, I lost hope for a second
链接地址: http://www.djcxy.com/p/67828.html