Tomcat configuration URIEncoding = "UTF-8" to the processing Chinese

Tomcat configuration URIEncoding = "UTF-8" to the processing Chinese

Open server.xml file, change two places.

A Configuration: Add URIEncoding = "UTF-8"

<Connector URIEncoding="UTF-8" connectionTimeout="20000" port="8081" protocol="HTTP/1.1" redirectPort="8443"/>

Configuration two: Add URIEncoding = "UTF-8"

<Connector URIEncoding="UTF-8" port="8009" protocol="AJP/1.3" redirectPort="8443"/>

After you configure the restart tomcat.

Guess you like

Origin www.cnblogs.com/guohu/p/11135934.html