tomcat接收请求默认使用的是ISO-8859-1编码;
如果把接收请求修改为UTF-8编码,在server.xml文件里,更改如下:
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8"/>
如果把接收请求修改为UTF-8编码,在server.xml文件里,更改如下:
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8"/>