String str = (String) request.getParameter("username");
byte[] temp = str.getBytes("ISO-8859-1");
str = new String(temp,"UTF-8");
out.print(str);
JSP传值中文乱码
最新推荐文章于 2021-07-16 11:49:20 发布
String str = (String) request.getParameter("username");
byte[] temp = str.getBytes("ISO-8859-1");
str = new String(temp,"UTF-8");
out.print(str);