通常修改Tomcat的默認編碼方式便可:編碼
例如:Tomcat的默認編碼修改方式:
修改%TOMCAT_HOME%/conf/server.xml,找到這行代碼:
<Connector port="8080" protocol="HTTP/1.1" redirectPort="8449" connectionTimeout="20000"/>
在後面能夠追加URIEncoding屬性,例如:
<Connector port="8080" protocol="HTTP/1.1" redirectPort="8449" connectionTimeout="20000"
URIEncoding="UTF-8"/>