PHP中文网2017-04-17 13:52:32
Which one is it specifically? Is it related to similar functions of url_encode()
PHP中文网2017-04-17 13:52:32
// 将请求、响应的编码均设置为UTF-8
request.setCharacterEncoding("UTF-8");
response.setCharacterEncoding("UTF-8");
迷茫2017-04-17 13:52:32
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)
.