>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.

Yes, it works.
I wasn't aware of it.
I use Eclipse for editing. Do you know if there is a way to tell him to do it automatically ? It's strange that Eclipse default properties editor doesnt handle this automatically, isn't it ? What would be nice is if there is a way for Struts2 to do the samething than naitive2ascii on the fly....

Property files are hard to read now ...


Thanks a lot !

Mike

Laurie Harper a écrit :
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]



--

Mike Baroukh

---
Cardiweb  - 31 Rue de Mogador Paris IXeme
06 63 57 27 22 - 01 53 21 82 63 - Jabber: [EMAIL PROTECTED]
http://www.cardiweb.com
---


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

Reply via email to