这两天发现tomcat和apache通过mod_jk互联汉字出现乱码,tomcat单独解析没有问题,tomcat的server.xml里配置了转码.如下:
port="8080" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
debug="0" connectionTimeout="20000"
disableUploadTimeout="true" URIEncoding="GBK"/> |
其实,在互联的8009端口也增加转码就解决了问题.如下:
enableLookups="false" redirectPort="8443" debug="0" protocol="AJP/1.3" URIEncoding="GBK"/>
|
阅读(2354) | 评论(0) | 转发(0) |