2 Replies Latest reply on Jul 31, 2006 3:54 AM by nepoez nugget

    Facelet and pageEncoding

    nepoez nugget Newbie

      Hi, I have utf8 data in my DB, and when I used to use JSP I can specify
      <%@ page pageEncoding="UTF-8" %>

      and the data display correctly.. however in facelet, I can't use that..

      How should I do it in facelet?

        • 1. Re: Facelet and pageEncoding
          Jim Hazen Expert

          Later versions of facelets default to UTF-8. If you want to change that I think you can specify the encoding parameter on the xml declaration. If that doesn't seem to work for you, you might want to ask the facelets mailing list.

          • 2. Re: Facelet and pageEncoding
            nepoez nugget Newbie

            Actually ends up that wasn't the problem. Everything displays properly if I set the escape="false"

            but this is not what I want. I want the users to be able to input anything and if there are things that need to be escaped, the h:outputText should escape it, but I don't want the characters in other languages to be all escaped as well..