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: <>
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 Deuter
Internationalization Manager
Plumtree Software

>-----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
Received on Tuesday, 13 November 2001 23:58:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:40:46 UTC