I've been researching this for a while.
I'm using Tomcat 4.1.18, and struts 1.0.2.
My app is successfully handling Unicode characters -- in all the actions,
stored in the database, displayed on the HTML pages, using charset=UTF-8.
But the only way I can find to get form data into Unicode in my form bean
is by manually transcoding the UTF-8 strings that come in into Unicode.
I'm led to believe that adding a filter to my app that calls
ServletRequest.setCharacterEncoding("UTF-8") will automatically transcode
the form data (from POST) into Unicode. I can set breakpoints in
the filter and see that setCharacterEncoding() is being called, and
breakpoints in my form to see that the UTF-8 string from the form is
being set untouched.
What's the deal? Is it really necessary to add conversion code to all of
my form beans?
Cheers,
Mojo
--
Morris Jones <*>
San Rafael, CA
[EMAIL PROTECTED]
http://www.whiteoaks.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]