码迷,mamicode.com
首页 > 其他好文 > 详细

easyUI form sumit 中文乱码

时间:2016-08-06 08:28:52      阅读:245      评论:0      收藏:0      [点我收藏+]

标签:

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

easyUI form sumit 中文乱码

标签:

原文地址:http://www.cnblogs.com/zno2/p/4761303.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!