Phpjson_decode conversion returns null, the error is UTF-8MalformedUTF-8characters, possiblyincorrectlyencoded. I converted a json string returned by another server. I used mb_detect_encoding to detect UTF-8 encoding. Php json_decode conversion returns null, the error is UTF-8Malformed UTF-8 characters, possibly incorrectly encoded.
I converted a json string returned by another server. I used mb_detect_encoding to detect UTF-8 encoding.
Reply content:
Php json_decode conversion returns null, the error is UTF-8Malformed UTF-8 characters, possibly incorrectly encoded.
I converted a json string returned by another server. I used mb_detect_encoding to detect UTF-8 encoding.
Try file_get_contents (); capture the content returned by the server first;
Open the interface address in Chrome and view network requests. You can see Content-Type: text/html; charset = GBK In Reponse.