Still problem.
In TC4b7 I set request to UTF-8 encoding also (I use
filters.SetCharacterEncodingFilter
encoding in web.xml and request.setCharacterEncoding())
I removed
param=new String(param.getBytes("iso-8859-1"),"UTF-8");
and leaved only
String param=_request.getParameter(name);
Exactly the same result: in IE and NS every things fine from Opera value is
cut.


-----Original Message-----
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 10, 2001 1:31 PM
To: [EMAIL PROTECTED]
Subject: Re: Encoding problem in Opera browser


On Fri, 10 Aug 2001, Evgeniy Strokin wrote:

> I use TC 3.2.3 (Actually in TC 4b7 he same problem)
> I have all pages in UTF-8 encoding.
> I trying get values from parameters.
> I have this code:
> String param=_request.getParameter(name);
> param=new String(param.getBytes("iso-8859-1"),"UTF-8");
> In IE and NS every things fine.
> But from Opera I getting value shorter (for example ???? from IE and ??
from
> Opera)
> and after
> param=new String(param.getBytes("iso-8859-1"),"UTF-8");
> all not Latin symbols cut.
> Please help.
>

In Servlet 2.3 (and therefore in Tomcat 4b7 but not 3.2.3) there is a new
request.setCharacterEncoding() call that you can use to tell Tomcat to do
this transformation for you before returning the parameter in the first
place.

Craig

----------------------------------------------------
NetZero Platinum
Sign Up Today - Only $9.95 per month!
http://my.netzero.net/s/signup?r=platinum&refcd=PT97

Reply via email to