Java 中文乱码

request/response的默认编码是IOS8859-1,需要转码:

String s = new String(temp.getBytes("ISO-8859-1"),"UTF-8");  



你可能感兴趣的:(Java 中文乱码)