配置Tomcat 中文字符集问题

2/10/2017来源:ASP.NET技巧人气:467

找到Tomcat安装路径下的conf文件夹下的server.xml配置文件,修改配置Tomcat端口的标签"Connector",添加URIEncoding属性,代码如下: 

<Connector port="8090" PRotocol="HTTP/1.1"   
             maxThreads="150" connectionTimeout="20000"   
             redirectPort="8443" URIEncoding="utf-8" /> 
转自:http://qrqzhujinyi.iteye.com/blog/694068