tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "THG" <>
Subject Re: Internationalization question
Date Sun, 23 Feb 2003 01:45:18 GMT
>When I use this JSP, it shows up a text input.  I use kinput2/Mozilla to
>input some Japanese text, hit "submit", and then it displays the
>Japanese text back to me.
>What I'm wondering is, why does this work?  If simply use
>out.println("request.getParameter("test")) then it displays garbage. 
>For some reason, I must convert the parameter to bytes and then convert
>it right back to a String with UTF-8 encoding.  I'm not really sure what
>is going on here.
>Thanks for any comments on this.

with request.getParameter("test") you get the iso-8859-1 encoded utf-8 data (which is encoded
with us_ascii) - an double encoded string.

Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message