对于get乱码
String userName = new String(request.getParamter("userName").getBytes("ISO8859-1"),"utf-8")
或者
<Connector URIEncoding="utf-8" connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>
时间: 2024-11-06 11:33:26
对于get乱码
String userName = new String(request.getParamter("userName").getBytes("ISO8859-1"),"utf-8")
或者
<Connector URIEncoding="utf-8" connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>