Sebastian Kolbe wrote:
Hello

Having a problem with property file encoding.
I'm using properties files for i18n-messages and the setting
'struts.i18n.encoding' in struts.xml is set to 'UTF-8'.
Using the <s:text .../> tag the text appeared in the html output
exact the way (and encoding) it was in the property file.
With struts-2.0.9 some special characters are now broken. It looks
like there are first recoded to latin-1 and then written to html as
UTF-8.
With struts-2.0.8 everythink was fine...
Is there an additional configuration option or did I miss something
different?

"exact the way (and encoding) it was in the property file"? You know that properties files are required [1] to be encoded in ASCII, right? Also, do you set the output encoding in your JSP @page directive, and do you have an HTTP meta tag for content type in your HTML which also specifies the output encoding?

L.

[1]
http://java.sun.com/j2se/1.5.0/docs/api/java/util/PropertyResourceBundle.html
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html#encoding


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to