tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "THG" <...@lycos.com>
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.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message