1. 程式人生 > >後臺接收前臺中文亂碼

後臺接收前臺中文亂碼

將tomcat   server.xml  如下配置加上URIEncoding="UTF-8":

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

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