最新回答 / qq_神棍_1
你在往输出流写的时候, 要指定内容的编码(JAVA)response.getOutputStream().write(str.getBytes("UTF-8"));
2015-07-10
最新回答 / 程诺
// 将请求、响应的编码均设置为UTF-8(防止中文乱码) req.setCharacterEncoding("UTF-8"); resp.setCharacterEncoding("UTF-8");
2015-07-06
最赞回答 / weibo_SecturityE_0
乱码问题解决 我使用的是spring mvc return new String(re.getBytes("utf-8"),"ISO8859_1"); 就显示中文了.整个项目也是utf-8
2015-07-04