Aren't filters a bit overkill for such work? Doesn't facelets have a simple configuration parameter for this?? I have read mail where it's stated and fixed problem where myfaces does not respect the character encoding rule configured in facelets, but i can't find where in facelets to configure it...
En l'instant précis du 14/03/07 11:24, Cagatay Civici s'exprimait en ces termes: > Hi, > > A filter will help, > > http://www.jroller.com/page/mert?entry=utf_8_encoding_with_jsf > > Cagatay > > On 3/14/07, Christopher Cudennec <[EMAIL PROTECTED]> wrote: >> >> Hi, you can use a filter. We successfully use >> org.springframework.web.filter.CharacterEncodingFilter in our project. >> >> Cheers, Christopher >> >> David Delbecq schrieb: >> > This instruction only refers to xml charset encoding used when reading >> > it. Facelets does not use it as encoding for FacesContext.writer. Even >> > with such instruction in my xml (anyway, all my xml are already >> utf-8), >> > facelets still send the response to client in iso-8859-1 charset >> encoding. >> > >> > Other suggestions? >> > En l'instant précis du 09/03/07 11:16, Roger Alix-Gaudreau s'exprimait >> > en ces termes: >> > >> >> I am using Facelets as well, and we define the encoding in the XML >> >> prolog at the top of the layout template file, as such: >> >> >> >> <?xml version="1.0" encoding="UTF-8"?> >> >> >> >> Roger Alix-Gaudreau >> >> >> >> -----Original Message----- >> >> From: David Delbecq [mailto:[EMAIL PROTECTED] >> >> Sent: Friday, March 09, 2007 3:44 PM >> >> To: MyFaces Discussion >> >> Subject: How to set response character encoding? >> >> >> >> Hello, >> >> >> >> i am trying to figure out how to set the response character >> encoding in >> >> my jsf pages. I am using MyFaces+Facelets, the response by default >> seems >> >> to be iso8859-1 and i'd like to set it to UTF-8, where do i configure >> >> this? >> >> >> >> Thanks >> >> >> >> >> > >> > >> > >> >>

