标签:ext type 乱码问题 res char 请求 etc ons class
String name = new String(name.getBytes("ios-8859-1"),"utf-8")
request.setCharacterEncoding("utf-8");
在server.xml中添加属性useBodyEncodingorURI=true
request.setCharacterEncoding("utf-8");
response.setCharacterEncoding("utf-8");
response.setContentType("text/html;charset=utf-8")
标签:ext type 乱码问题 res char 请求 etc ons class
原文地址:https://www.cnblogs.com/striver20/p/12631385.html