<Connector URIEncoding="utf-8" connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>
增加 URIEncoding="utf-8"
方法2:
name = new String(request.getParameter("name").getBytes("iso8859-1"),"utf-8");
<Connector URIEncoding="utf-8" connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>
增加 URIEncoding="utf-8"
方法2:
name = new String(request.getParameter("name").getBytes("iso8859-1"),"utf-8");