We know that when using PHP Json_encode to deal with Chinese, Chinese will be encoded, become unreadable, similar to the "\u***" format, but also to a certain extent, increase the amount of data transferred.
Echo Json_encode ("Chinese"); Output: "\u4e2d\u6587"
This let us do the development of the students in the celestial, is a headache, and sometimes have to write their own json_encode. In PHP5.4, the problem is finally resolved, JSON added an option: Json_unescaped_unicode, so the name Incredibles, that is, JSON does not encode Unicode.
Look at the following example:
Echo Json_encode ("Chinese", Json_unescaped_unicode); Output: "Chinese"
How, is not let everybody very happy change?
Of course, JSON also joins in 5.4: Json_bigint_as_string, Json_pretty_print, json_unescaped_slashes and other options
If you are interested, you can see: Json_encode