W3C home > Mailing lists > Public > www-international@w3.org > October to December 2001

RE: Double Byte character sets

From: Paul Deuter <PaulD@plumtree.com>
Date: Wed, 14 Nov 2001 01:39:56 +0900
Message-Id: <4.2.0.58.J.20011114013950.04330570@localhost>
To: www-international@w3.org
The Java servlet engine is hardcoded to 8859_1.  If you try to use another 
character set you need to use special code.
You will find that setting a the character set in a page directive will help.
You will also find that using code such as the following for reading 
parameters will also help:

String strSomeValue = new 
String(request.getParameter("SomeName").getBytes("8859_1"), "UTF8");

-Paul


Paul Deuter
Internationalization Manager
Plumtree Software
paul.deuter@plumtree.com

>-----Original Message-----
>From: Eric Kreiser [mailto:ekreiser@knowledgeplanet.com]
>Sent: Friday, November 09, 2001 2:10 PM
>To: Www-International-w3c-org (E-mail)
>Subject: Double Byte character sets
>
>I am having a problem passing Japanese text from the client IE browser to 
>a JRUN servlet thru an HTML form.  When I get the value out of the Request 
>object on the server, the text is corrupted.  My pages are set to UTF-8 
>encoding.  I am posting the form.  What could be wrong?  What am I missing?
>
>Any help would be greatly appreciated.
>
>Thanks in advance
>Eric
>
Received on Tuesday, 13 November 2001 23:58:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 19:16:58 GMT