1.post中
request.setCharacterEncoding("utf-8");
response.setCharacterEncoding("utf-8");
2.get中
new String (s.getBytes("iso-8859-1"),"utf-8");
配置tomcat\conf\server.xml文件
URIEncoding ="UTF-8"
useBodyEncodingForURI ="true"
时间: 2025-01-07 04:27:37