Hello,

I'm using Aaron Rustads SetCharacterEncodingFilter-filter for Struts but with mixed 
results (see link below).

* All my Resource-, JSP- and Java-files are saved in UTF-8 format.
* The filter is configured in Tomcat (WEB-INF/web.xml) for my application.

First problem:
Posted data from a web form is sent as UTF-8, which is great - the filter works! But 
if I want to print the form bean values in another JSP-page with the bean:write tag, 
the bean property must return 'new String(oldString.getBytes(), "UTF-8")' for it to 
work. Am I doing something wrong here?`

Second problem:
Swedish letters Ä Ö and Å are not compatible with UTF-8? These 
characters A (with two dots), A (with a circle) and O (with two dots) never work, 
which is the opposite from their lowercase counterparts which works fine.

Regards, Jon

http://www.anassina.com/struts/i18n/i18n.html

Reply via email to