欢迎选择我的课程,让我们一起见证您的进步~~
Just use unicode or urlencode on both ends to avoid Chinese characters
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");
new String(str.getBytes("gbk"), "utf-8");
new String(result.getBytes("ISO-8859-1"), "UTF-8");
I think the next line of code should be encoded by urlencode in Chinese regardless of get or map in post.
Try the method on the second floor. . It is estimated that the coding order is reversed.
Just use unicode or urlencode on both ends to avoid Chinese characters
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");
I think the next line of code should be encoded by urlencode in Chinese regardless of get or map in post.
Try the method on the second floor. . It is estimated that the coding order is reversed.