Home  >  Article  >  Backend Development  >  The datatables server uses json. The search can search in English, but an error will be reported in Chinese. It feels like a json encoding problem, please solve it

The datatables server uses json. The search can search in English, but an error will be reported in Chinese. It feels like a json encoding problem, please solve it

WBOY
WBOYOriginal
2016-08-18 09:16:29982browse

<code>echo json_encode($json_data,JSON_UNESCAPED_UNICODE);  </code>

Even adding the JSON_UNESCAPED_UNICODE parameter still doesn’t work.

Reply content:

<code>echo json_encode($json_data,JSON_UNESCAPED_UNICODE);  </code>

Even adding the JSON_UNESCAPED_UNICODE parameter still doesn’t work.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn