微信开发JSON格式错误如何修正?
- 内容介绍
- 文章标签
- 相关推荐
本文共计164个文字,预计阅读时间需要1分钟。
问题:使用PHP语言进行微信开发时,在创建卡券的时候出现数据格式错误,错误信息如下:{errcode:47002,errmsg:”data format error, do NOT use json unicode encode (\\uxxxx\\uxxxx), please use us”}
问题:
使用PHP语言进行微信开发时,在创建卡券的时候出现数据格式错误,错误返回信息如下:
{“errcode”:47002,”errmsg”:”data format error, do NOT use json unicode encode (\uxxxx\uxxxx), please use utf8 encoded text! hint: [udJhFa0680e569]”}
解决办法:
使用PHP中的json_encode函数时加上参数JSON_UNESCAPED_UNICODE即可,如:
json_encode($arr,JSON_UNESCAPED_UNICODE)
以上就是微信开发中json格式不正确怎么办的详细内容,更多请关注自由互联其它相关文章!
本文共计164个文字,预计阅读时间需要1分钟。
问题:使用PHP语言进行微信开发时,在创建卡券的时候出现数据格式错误,错误信息如下:{errcode:47002,errmsg:”data format error, do NOT use json unicode encode (\\uxxxx\\uxxxx), please use us”}
问题:
使用PHP语言进行微信开发时,在创建卡券的时候出现数据格式错误,错误返回信息如下:
{“errcode”:47002,”errmsg”:”data format error, do NOT use json unicode encode (\uxxxx\uxxxx), please use utf8 encoded text! hint: [udJhFa0680e569]”}
解决办法:
使用PHP中的json_encode函数时加上参数JSON_UNESCAPED_UNICODE即可,如:
json_encode($arr,JSON_UNESCAPED_UNICODE)
以上就是微信开发中json格式不正确怎么办的详细内容,更多请关注自由互联其它相关文章!

