【显示乱码解决】tomcat7某个版本之下,编码转换

// 后台处理
playerName = new String(playerName.getBytes("iso-8859-1"), "UTF-8");
// jsp中
String playerName =  new String(java.net.URLDecoder.decode(request.getParameter("playerName"),"utf-8").getBytes("ISO-8859-1"),"utf-8");

猜你喜欢

转载自blog.csdn.net/qq_42258975/article/details/108214008