首页 > 代码库 > Tomcat下字符集配置

Tomcat下字符集配置

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


<Connector port="8090" protocol="HTTP/1.1"   

             maxThreads="150" connectionTimeout="20000"   

             redirectPort="8443" URIEncoding="utf-8" /> 


Tomcat下字符集配置