You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by liuzf <li...@yahoo.com.cn> on 2004/09/15 12:09:31 UTC
character display different between apache and tomcat
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兆,雅虎电邮自助扩容!
Re: character display different between apache and tomcat
Posted by liuzf <li...@yahoo.com.cn>.
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 <ny...@yahoo.com> 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兆,雅虎电邮自助扩容!
Re: character display different between apache and tomcat
Posted by nyhgan <ny...@yahoo.com>.
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 <li...@yahoo.com.cn> 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�ף��Ż������������ݣ�
---------------------------------
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!