Mike Baroukh wrote:

Hi.

I have a problem with accents.
My project is entirely in utf-8 : jsps, java sources, resources properties ....

Depending on the way I put accents in my jsp, it works or not :

work :
- directly in the jsp source
- with s:property  -> converted with à by freemarker.
- in input box of  s:textfield  -> converted with à by freemarker.

don't work with :
- in label attribute of any ui tag, if I use %{getText('xx')}.
- with s:text.

I use a filter that force encoding to utf-8.
I also add  page pageEncoding="UTF-8" to the jsp.

With or without SiteMesh, no difference.


Has anybody any idea on what's wrong ?
Thanks for any help.

UTF-8 encoding isn't legal for resource properties files; they have to be ASCII-encoded with Unicode escapes for non-ASCII characters. Use the JDK utility 'native2ascii' to convert them from UTF-8 to the correct encoding and syntax and see if that helps.

L.


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

Reply via email to