tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andre John Mas <aj...@newtradetech.com>
Subject Re: UTF-8 end to end - what am I doing wrong?
Date Thu, 10 Apr 2003 16:11:23 GMT
Oxley, David wrote:
> I had loads of problems getting UTF-8 to work. The problem you're getting
> sounds like the POST is being read as ISO-8859-1, because the client doesn't
> tell the server (or if it does, it can't be relied upon). Use this in the
> servlet to get the POST.
>     String result = req.getParameter(parm);
>     String value = new String(result.getBytes("ISO-8859-1"), "UTF-8");
> 

I'll give this a go, but my first reaction to the above example is
that it looks like the non-latin characters will end up mangled, or
am I misunderstanding what is happening here?

Andre



---------------------------------------------------------------------
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