python - 微信公众平台客服接口中文乱码?
巴扎黑
巴扎黑 2017-04-17 13:50:32
0
3
1064

微信公众平台客服接口中文乱码的问题有人遇到过吗?

巴扎黑
巴扎黑

reply all(3)
Ty80

Which one is it specifically? Is it related to similar functions of url_encode()

洪涛
// 将请求、响应的编码均设置为UTF-8  
request.setCharacterEncoding("UTF-8");  
response.setCharacterEncoding("UTF-8");  
迷茫

This is caused by the json_encode function used when sending the message without using the JSON_UNESCAPED_UNICODE parameter. The correct way to use it is: json_encode($template, JSON_UNESCAPED_UNICODE).

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template