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

Character Encoding tomcat.

时间:2014-06-08 00:19:22      阅读:270      评论:0      收藏:0      [点我收藏+]

标签:c   style   class   code   a   http   

default character encoding of the request or response body:

  If a character encoding is not specified, the Servlet specification requires that an encoding of ISO-8859-1 is used.

  For JSP pages,The request character encoding handling is the same,for JSP pages in standard syntax the default response charset is the usual ISO-8859-1, but for the ones in XML syntax it is UTF-8.

 

Default encoding for GET

  Many browsers are starting to offer (default) options of encoding URIs using UTF-8 instead of ISO-8859-1.

  HTML 4.0 recommends the use of UTF-8 to encode the query string.

Default Encoding for POST

  ISO-8859-1 is defined as the default character set for HTTP request and response bodies in the servlet specification

ref:  http://wiki.apache.org/tomcat/FAQ/CharacterEncoding

Character Encoding tomcat.,布布扣,bubuko.com

Character Encoding tomcat.

标签:c   style   class   code   a   http   

原文地址:http://www.cnblogs.com/listened/p/3774598.html

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