You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nathan Christiansen <Na...@tni.com> on 2003/08/15 21:00:42 UTC
RE: Simplified Chinese to UTF-8 (SOLVED)
Sorry Dan,
I used the Filter as is (using UTF-8) and removed the code to try to convert it again and it works beautiflly for both Chinese and any type of Japanese I can throw at it.
Thanks again.
-- Nathan Christiansen
Tahitian Noni International
http://www.tahitiannoni.com
-----Original Message-----
From: Nathan Christiansen
Sent: Friday, August 15, 2003 12:25 PM
To: tomcat-user@jakarta.apache.org
Subject: RE: Simplified Chinese to UTF-8
Thanks Dan.
I did download the filter code and tried all of the Simplified Chinese encodings without luck.
I am unsure which encoding that the IME is sending (since I do not read Chinese myself and can't read the help manual).
Looking through the filter code, it would be exactly similar if I added the request.setCharacterEncoding() call to the top of the JSP page since I am calling the JSP page directly.
Any other suggestions?
-- Nathan Christiansen
Tahitian Noni International
http://www.tahitiannoni.com
-----Original Message-----
From: Dan Tran [mailto:danttran@hotmail.com]
Sent: Friday, August 15, 2003 10:54 AM
To: Nathan Christiansen
Subject: Re: Simplified Chinese to UTF-8
You need to implement a filter according the folowing
link
http://www.anassina.com/struts/i18n/i18n.html
-Dan
----- Original Message -----
From: "Nathan Christiansen" <Na...@tni.com>
Newsgroups: Tomcat
Sent: Friday, August 15, 2003 9:33 AM
Subject: Simplified Chinese to UTF-8
> I have an annoying problem that I am trying to figure out.
>
> I need to support Simplified Chinese in a webapp that also supports
ISO-8859-1.
>
> I figure the best way is to make my web pages encoded in UTF-8.
>
> The database access and display works, but I am having trouble with
getting post data to come out correctly.
>
> I am running Tomcat 4.1.24 on a RedHat Linux 7.1 box with JDK 1.4.1_01.
>
> I have tried using the following JSP file to test the post input from a
Windows 2000 Server box that allows me to input Simplified Chinese. But
every encoding in the JSP file gives me garbage back.
>
> Any ideas?
>
> Thanks.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org