Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Problem with encoding

Mike Baroukh

2007-01-02

Replies:


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.

--

Mike Baroukh

---
Cardiweb - 31 Rue de Mogador Paris IXeme
06 63 57 27 22 - 01 53 21 82 63 - Jabber: mbaroukh@(protected)
http://www.cardiweb.com
---


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.