Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 34223 invoked from network); 16 Sep 2004 02:50:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 16 Sep 2004 02:50:17 -0000 Received: (qmail 15886 invoked by uid 500); 16 Sep 2004 02:49:43 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 15686 invoked by uid 500); 16 Sep 2004 02:49:41 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 15670 invoked by uid 99); 16 Sep 2004 02:49:41 -0000 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,FROM_ENDS_IN_NUMS,HTML_30_40,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [202.165.102.62] (HELO web15608.mail.cnb.yahoo.com) (202.165.102.62) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 15 Sep 2004 19:49:36 -0700 Message-ID: <20040916024933.67340.qmail@web15608.mail.cnb.yahoo.com> Received: from [218.107.133.3] by web15608.mail.cnb.yahoo.com via HTTP; Thu, 16 Sep 2004 10:49:33 CST Date: Thu, 16 Sep 2004 10:49:33 +0800 (CST) From: liuzf Subject: Re: character display different between apache and tomcat To: Tomcat Users List In-Reply-To: <20040915154233.76655.qmail@web52410.mail.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-253182306-1095302973=:46087" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --0-253182306-1095302973=:46087 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit Firstly, thank you for your reply. I 've comment that line. The Chinese Characters still display as '???' . I think it may be the web_app.so changes the encoding method. nyhgan wrote: You don't need to set the default charset in the httpd.conf. Just comment out that line, and I think it will work. Give it a try! liuzf wrote:I code a servlet using Charset GBK, It works well on Tomcat-Standalone. use localhost:8080/myservlet, the character displays correctly. But it displays totally wrong on Tomcat-Apache. use localhost/myservlet to access it. I already add ' addDefaultCharset gb2312 ' in /etc/httpd/conf/httpd.conf. it still can not work. Please help me . Thanks. --------------------------------- Do You Yahoo!? 150����MP3����ѣ������������ֵ��� ��Ů����Ӧ�о��У��ѱ���ͼ����ͼ�Ϳ�ͼ 1G����1000�ף��Ż������������ݣ� --0-253182306-1095302973=:46087--