Home > Backend Development > PHP Tutorial > substr截取字符串以后,ajax传到前台之后为空

substr截取字符串以后,ajax传到前台之后为空

WBOY
Release: 2016-06-13 12:17:15
Original
793 people have browsed it

substr截取字符串之后,ajax传到前台之后为空
substr截取字符串之后,ajax传到前台之后为空的,只有纯英文的可以显示,日文等要么整个为空的,请问这是哪方面的原因。
------解决思路----------------------
json返回的?中文必须要是utf-8的编码才能json输出
------解决思路----------------------
不截取时怎么样?
------解决思路----------------------
編碼是否UTF8?
------解决思路----------------------
以什么格式返回?编码对了没?
------解决思路----------------------
请保持文件编码格式是无BOM的UTF8,php默认编码是utf-8,mysql的编码也是utf-8,乱码问题会远离你!

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