`

解决tomcat地址栏传中文乱码的问题(转载)

阅读更多

tomcat做web服务器时,通过地址栏传中文参数时,为防止浏览器上的为乱码 
需在服务器server.xml中配置对应的端口中配置编码方式即可.例如: 

    <Connector port="8080" 
              maxThreads="150" minSpareThreads="25" maxSpareThreads="75" 
              enableLookups="false" redirectPort="8443" acceptCount="100" 
              debug="0" connectionTimeout="20000" 
              disableUploadTimeout="true"  useBodyEncodingForURI="true" URIEncoding="UTF-8"/> 

中加入useBodyEncodingForURI="true" URIEncoding="UTF-8"就可以了.

 

转载自:http://wangyong.iteye.com/blog/219675

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics