I am using MyFaces and Facelets and trying to deliver XHTML with UTF-8 encoding, but when outputting national characters they are converted to &#xyz; codes.

I have found out that the MyFaces ResponseWriter thinks I want ISO-8859-1 encoding because calling FacesContext.getResponseWriter().getCharacterEncoding() returns the ISO-8859-1 value.

All my Facelet view files are written in UTF-8 and they all state that they are UTF-8 as follows
<?xml version="1.0" encoding="UTF-8"?>

Can anyone give me a hint why MyFaces still thinks I am serving ISO-8859-1 ?

I am using the default render kit (if that matters), my facelet views are written as .xml files in which I do NOT have an f:view tag which the Facelet developer's claim is not necessary when using Facelets.

Randahl


Reply via email to