PHP JSON returns Unicode encoding issue

This problem is not big, but in order to prevent myself from forgetting, I will record it here

Use the json_encode function when returning json

If you don't want to return the Unicode code, just write JSON_UNESCAPED_UNICODE in the second parameter of this function.

例:return json_encode($data, JSON_UNESCAPED_UNICODE);

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325005826&siteId=291194637