美文网首页
json_encode编码中文出现问题

json_encode编码中文出现问题

作者: Godtoy | 来源:发表于2017-02-18 14:00 被阅读0次

    1.有时候第三方回调通知的时候,传过来的数据是urlencode过的,这导致我们使用签名的时候,发现签名始终不一样,这个时候我们需要urldecode解码中文。

    2.但是当我们解码成中文后,json_encode又编码失败,这个时候我们再继续urlencode编码就可以了

    333.png 2.png

    相关文章

      网友评论

          本文标题:json_encode编码中文出现问题

          本文链接:https://www.haomeiwen.com/subject/xjgrwttx.html