Im not sure if this is problem of tomcat, but i think that its most probable.

Problem:
Data received from form are not encoded corectly. (tomcat 5.5, utf-8, win xp/RHEL4, struts)

Symptoms:
Data in request are completly screwed. (no matter if im displaying it in utf-8 console, or sending back to browser with utf-8 coding set)

Solution attempts:
Yea Ive spent 2 days for solving this.

1. I have all pages with correct content-type header
2. I have succesfuly installed content-type encoding filter that adds UTF-8 content-type to header (completly useless)
3. Its completly browser independent (FF, IE, Opera)
4. Data which ive encoded with JS to utf8 and append to URL, are screwed too.

What works:

If i use toUTF8 function from Tomcat wiki (http://wiki.apache.org/tomcat/Tomcat/UTF-8?highlight=%28encoding%29) on received string, it returns correct string. Maybe you will ask, why bother us when he finds solution. Idea that every bean setter contain toUTF8 function makes me ... nervous. Additionally it seems that it works without it, to many people.

So my question is if there is something what i could miss, if it could depend on VM version or something crazy like that

Thanks

d.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to