json数据在非UTF-8编码下能乱码吗?权威的说下

WBOY
Release: 2016-06-13 11:53:44
Original
1047 people have browsed it

json数据在非UTF-8编码下会乱码吗?权威的说下
json数据在非UTF-8编码下会乱码吗?权威的说下
------解决方案--------------------
不会 得跟你文件的编码一致
------解决方案--------------------
所以json_encode()的参数必须是utf-8编码,否则会得到空字符或者null。
------解决方案--------------------
手写的不会,只是个文本而已,但用程序生成的就难说了,编码解码都要视乎json控件的能力
------解决方案--------------------
传递参数的时候需要做编码.我记得我遇到过你说的问题

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template