从tomcat8.0开始,URIEncoding默认值不再是ISO8859-1,而变成了UTF-8
来源:互联网 发布:算法和程序的关系 编辑:程序博客网 时间:2024/06/08 01:07
来自http://mycloudream.github.io/2016/06/30/Servlet%E5%A4%84%E7%90%86get%E8%AF%B7%E6%B1%82%E6%97%B6%E7%9A%84%E4%B8%AD%E6%96%87%E4%B9%B1%E7%A0%81%E9%97%AE%E9%A2%98.html
官方文档 (https://tomcat.apache.org/tomcat-8.0-doc/config/http.html) 中是这么说的:
URIEncoding: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.
那么也就意味着,从tomcat8.0开始,get请求中的中文参数,不需要特殊处理了。而如果是tomcat8之前的项目要迁移到tomcat8上面来,则也需要特殊注意这个问题,可能要删减代码中响应乱码的处理模块了。
阅读全文
0 0
- 从tomcat8.0开始,URIEncoding默认值不再是ISO8859-1,而变成了UTF-8
- ISO8859-1、utf-8、gb2312
- ISO8859-1、UTF-8 与GB2312
- java编码 utf-8 gbk iso8859-1
- ISO8859-1、UTF-8 与GB2312
- 编码解码!(UTF-8,iso8859-1,gbk)
- Unicode、UTF-8、ISO8859-1的区别
- ISO8859-1、UTF-8 与GB2312
- ISO8859-1、UTF-8 与GB2312
- iso8859-1 gb2312/gbk unicode utf-8
- ISO8859-1、UTF-8 与GB2312
- GBK,UTF-8,ISO8859-1,unicode,base64
- 奇了,网页编码方式为什么从gb2312变成了utf-8?
- 字符编码ASCII、Unicode、UTF-8、iso8859-1、GBK、GB2312
- Unicode、UTF-8 和 ISO8859-1到底有什么区别
- Unicode、UTF-8 和 ISO8859-1有什么区别?
- Unicode、UTF-8 和 ISO8859-1的区别
- Eclipse中默认ISO8859-1 字符集设置utf-8
- hdu 1255 覆盖的面积(线段树+扫描线)
- 20171015学习《css权威指南》1-6章
- NiFi学习笔记(二)——基本操作介绍
- ros学习笔记--ros的服务
- Matlab编程 Project Euler Problem24 : Lexicographic permutations
- 从tomcat8.0开始,URIEncoding默认值不再是ISO8859-1,而变成了UTF-8
- 阿里巴巴Java开发规约插件使用
- 使用dir列出包含继承的属性
- 如何隐藏你的Linux的命令行历史
- Hdu 3853 LOOPS DP求期望
- pandaroboot使用
- 【Java项目】添加教职工
- FZU 2108(AC自动机)
- 第一篇博客