PHP中文网2017-04-17 17:21:07
Just use unicode or urlencode on both ends to avoid Chinese characters
大家讲道理2017-04-17 17:21:07
You may have made the wrong conversion. The server gave you gbk. If you want to convert to utf-8, it should be new String(str.getBytes("gbk"), "utf-8");
另外,普遍的转换方式是new String(result.getBytes("ISO-8859-1"), "UTF-8");
高洛峰2017-04-17 17:21:07
I think the next line of code should be encoded by urlencode in Chinese regardless of get or map in post.
PHPz2017-04-17 17:21:07
Try the method on the second floor. . It is estimated that the coding order is reversed.