response:
response.setContentType("text/html;charset=utf-8");
rquest:
POST请求:request.setCharacterEncoding("utf-8");
GET请求: String str = new String(str.getBytes("ISO-8859-1"),"utf-8");
response.setContentType("text/html;charset=utf-8");
POST请求:request.setCharacterEncoding("utf-8");
GET请求: String str = new String(str.getBytes("ISO-8859-1"),"utf-8");
本文标题:JSP乱码解决
本文链接:https://www.haomeiwen.com/subject/bikgbftx.html
网友评论