Json_encode Charset problem

前端 未结 7 815
心在旅途
心在旅途 2020-12-10 17:35

When I use json_encode to encode my multi lingual strings , It also changes special characters.What should I do to keep them same .

For example

<         


        
7条回答
  •  -上瘾入骨i
    2020-12-10 17:53

    PHP 5.4 adds the option JSON_UNESCAPED_UNICODE, which does what you want. Note that json_encode always outputs UTF-8.

提交回复
热议问题