1.有时候第三方回调通知的时候,传过来的数据是urlencode过的,这导致我们使用签名的时候,发现签名始终不一样,这个时候我们需要urldecode解码中文。
2.但是当我们解码成中文后,json_encode又编码失败,这个时候我们再继续urlencode编码就可以了
333.png 2.png1.有时候第三方回调通知的时候,传过来的数据是urlencode过的,这导致我们使用签名的时候,发现签名始终不一样,这个时候我们需要urldecode解码中文。
2.但是当我们解码成中文后,json_encode又编码失败,这个时候我们再继续urlencode编码就可以了
333.png 2.png本文标题:json_encode编码中文出现问题
本文链接:https://www.haomeiwen.com/subject/xjgrwttx.html
网友评论