项目编译时中文乱码解决

项目编译时中文乱码解决:
1.tomcat 5.5
修改get乱码 tomcat下 conf 下server.xml中的
<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector
port="8080"               maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="gbk"/>
添加URIEncoding="gbk;

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

你可能感兴趣的:(tomcat)