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");