> -----Original Message-----
> From: Adam Winer [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, September 03, 2005 6:47 PM
> To: MyFaces Development
> Subject: Re: [jira] Updated: (MYFACES-272) MyFaces 
> unnecessary encodes all non-latin characters as numeric 
> character references even if response character encoding is 
> set to UTF-8
> On 9/2/05, Kalle Korhonen (JIRA) 
> <[email protected]> wrote:
> > A tip for people trying it out, to properly set UTF-8, you 
> need to use an encoding filter.
> Why?  This shouldn't be necessary, since a JSF implementation 
> should restore the character encoding during Restore View.  
> (I think this is in the spec, though I'm being lazy right now 
> and not checking...)

Once set, restoring the character encoding works correctly in both RI
and MyFaces if I remember correctly (works that way for locale at
least). But that's not the problem; if you set it on the page with a
page directive, MyFaces has already tried to read it from the request
and reverted to default encoding (ISO-8859-1) if not set (I've only used
MyFaces with Tiles, that could make a difference in this case). Now
that's probably a bug, but I don't know exactly what shouldn't be
necessary, but I do know what's necessary to make things work with the
current MyFaces.

Kalle

Reply via email to