json编码失败:用单个引号
Analysis
Upon examining the issue, it was discovered that the underlying cause was the inability of json_encode() to correctly handle characters outside the ASCII range.在十六进制中表示为\ x92的单引号特别有问题。solution old(dempecated)api:
如果使用php 5.3.6或更早的php 5.3.6或更早。 UTF8_DECODE()将文本转换为正确编码的格式。但是,这可能并不总是产生所需的结果,因为它假定文本是在ISO-8859-1中编码的。免责声明: 提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发到邮箱:[email protected] 我们会第一时间内为您处理。
Copyright© 2022 湘ICP备2022001581号-3