Article View: cn.bbs.comp.lang.java
Article #18603java servlet/jsp �������������(ת��)
From: �������
Date: Sat, 07 Feb 2004 13:33
Date: Sat, 07 Feb 2004 13:33
63 lines
4573 bytes
4573 bytes
[1;37m�� ��������ת���� [32mWebDevelop [37m������ �� �� ԭ����[32m RDF[37m ��� ��[m ����ƺ�������̸�ˡ� ��Ϊò���Ѿ�������ˡ�����ϸ�뿴֮ǰ��һЩ���£� Ȼ������ʹ�����µ�Tomcat 5.0.18��ʱ����������Ȼ�ֳ����ˣ� ����������Ȼ�ĵ����� request.setCharacterEncoding() ֮�� һ��ʼ����Ϊ�� tomcat �Ŀ����汾�����⣬���ǿ���� http://jakarta.apache.org/tomcat/faq/misc.html In Tomcat 5 - there has been issues with respect to character encoding. ( Usually of the the form "request.setCharacterEncoding (String) doesn't work" ) Odds are, its not a bug. Before filing a bug report, see these bug reports as well as any bug reports linked to these bug reports: 23929, 25360, 25231, 25235, 22666 , 24557, 24345, 25848 Tomcat �����ⲻ�� bug����Ȼ Tomcat �����Ȱ汾����4.x��5.0.2���� ������ϣ��ķ�ʽ������ ��ϸ�Ľ����� http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23929 ��Ҫ���ǣ���ǰ���ǿ��ܴ��������� servlet API �� Things to note regarding the servlet API: 1. HttpServletRequest.setCharacterEncoding() normally only applies to the request body NOT the URI. ok, �������İ취Ҳ�ܼ� Use POST with forms to return parameters as the parameters are then part of the request body. ��Щ������rfc��ijЩ�涨���ڽ���query������²�ʹ��post����û�� �?�������Щ�涨���ƶ���ʱ��û�г�ֿ��Ƿ�ascii������� uri��Ψһ���뷽ʽ�� utf-8 ����ζ��get��ʽ�IJ���Ӧ����utf-8���룩�� ���ǿɶ��ms ie�������������أ��������ѡ����װģ������� ��ʼ����utf-8���͡���ѡ�������Ҳ���������� ��ˣ����ǻ���Ӧ�����html�淶��ʹ��post�����ͷ�ascii����ݡ� ���������Ծɲ��ܳ�ֽ�����⣨��Ϊ�������㻹�Dz�֪��response ��encoding�������������ı?������֪������ģ���˾����?�� ���Դ����ˡ� -- ������ �뻹��������û��װ������� ����û�з���Ҳ�뻹���� �뻹�����糿�����ҵ���ֻ�ۼ� �����Ѿ�����Ե��� Ҳ��ѹ�ͷ������ �뻹���Ұ�ɽ���ϵ��������� �����Ѿ�����¼���˴Ŵ��� Ҳ��ѵ��ӻ����� �뻹���� �������ֵܽ����ǵĹ�ϵ ����ֻ�а���Ҳ�뻹���� �뻹���Ұ��Ŀռ� �����Ѿ�������Ⱦ�� Ҳ��ѻ�����Ȩ����� �뻹����������� �����Ѿ�����ָ��һǧ����� һ�ڸ���ׯ Ҳ�뻹���� [m[1;33m�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 202.120.15.10][m -- [m[1;33m�� ת��:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 202.120.15.10][m
Technical Details
Message-ID:
<4AYhX3$A4P@bbs.sjtu.edu.cn>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-05!sn-xit-08!supernews.com!hermes.visi.com!news.octanews.net!priapus.visi.com!orange.octanews.net!news-out.visi.com!petbe.visi.com!news.octanews.net!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!SJTUShow Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB X-Google-Thread: f6cb0,6b512549bb2cf7bc,start X-Google-Attributes: gidf6cb0,public X-Google-ArrivalTime: 2004-02-07 05:34:08 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-05!sn-xit-08!supernews.com!hermes.visi.com!news.octanews.net!priapus.visi.com!orange.octanews.net!news-out.visi.com!petbe.visi.com!news.octanews.net!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!SJTU From: RDF.bbs@bbs.sjtu.edu.cn (�������) Newsgroups: cn.bbs.comp.lang.java Subject: java servlet/jsp �������������(ת��) Date: 07 Feb 2004 13:33:39 GMT Organization: ��ˮ˼Դ Message-ID: <4AYhX3$A4P@bbs.sjtu.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: Java/M.1076160819.A Lines: 63