apache转发到tomcat 中文乱码
apche转发到tomcat 中文乱码
修改tomcat的server.xml
添加
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8"/>
[java] view plaincopy
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8"/>
其实这个问题跟apache一点关系没有,以前只用tomcat的时候用8080端口也加上URIEncoding,
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8" useBodyEncodingForURI="true"/>