php json_decode转换返回null,错误是UTF-8Malformed UTF-8 characters, possibly incorrectly encoded。
我转换的是一个别的服务器返回的json格式的字符串。我用mb_detect_encoding侦测了是utf8编码的。
php json_decode转换返回null,错误是UTF-8Malformed UTF-8 characters, possibly incorrectly encoded。
我转换的是一个别的服务器返回的json格式的字符串。我用mb_detect_encoding侦测了是utf8编码的。
4 回答971 阅读
1 回答653 阅读✓ 已解决
2 回答627 阅读
605 阅读
试试 file_get_contents(); 先抓取服务器返回的内容;在json出来