php - Json_encode Charset problem -
When I use json_encode to encode my multilingual string, it also changes to special characters. What should you do to keep it?
For example
This gives something like ["\ u015f \ u00fc \ u011f \ u00e7 \ u00f6"]
but I want ["şüğçö"]
Try it out:
& lt;? Echo json_encode (array ('şüğçö'), JSON_UNESCAPED_UNICODE);
Comments
Post a Comment