zno2

easyUI form sumit 中文乱码

jsp 编码方式:

 pageEncoding="UTF-8"

tomcat 编码方式:

<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>

====================================================

原因:

编码不一致导致。

依据:

This specifies the character encoding used to decode the URI bytes, after %xx decoding the URL. If not specified, UTF-8 will be used unless the org.apache.catalina.STRICT_SERVLET_COMPLIANCE system property is set totrue in which case ISO-8859-1 will be used.

解决问题方式:

<Connector URIEncoding="utf-8" connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>

 

 

知识扩展

http://tomcat.apache.org/tomcat-8.0-doc/config/http.html

posted on 2016-08-06 07:29  zno2  阅读(447)  评论(0编辑  收藏  举报

导航