下面图老师小编跟大家分享J2EE WEB-Tomcat5.5.9中文问题解决方案,一起来学习下过程究竟如何进行吧!喜欢就赶紧收藏起来哦~
【 tulaoshi.com - 编程语言 】
1、html head meta http-equiv="Content-Type" content="text/html; charset=gb2312" title测试GET && POST-Send/title /head
filter filter-nameSetCharsetEncodingFilter/filter-name display-nameSetCharsetEncodingFilter/display-name descriptionSet CharsetEncoding Filter/description filter-classcom.gg.comm.web.SetCharsetEncodingFilter/filter-class init-param param-nameencoding/param-name param-valuegb2312/param-value /init-param /filter filter-mapping filter-nameSetCharsetEncodingFilter/filter-name url-pattern/*/url-pattern /filter-mapping
request.setCharacterEncoding(targetEncoding); response.setContentType("text/html"); response.setCharacterEncoding(targetEncoding);
!-- URIEncoding="GBK":Force GET method String(Chinese) can be transferd properly by http:uri note:Tomcat only support GBK specification,so not set charset gb2312 -- Connector URIEncoding="GBK" port="80" redirectPort="8443"maxSpareThreads="75" maxThreads="150" minSpareThreads="25" /Connector
%@ page contentType="text/html;charset=gb2312" language="java"% 或者 %@ page pageEncoding="gb2312"%
来源:http://www.tulaoshi.com/n/20160219/1600465.html
看过《J2EE WEB-Tomcat5.5.9中文问题解决方案》的人还看了以下文章 更多>>