6 Replies Latest reply on Jul 2, 2006 6:12 AM by Tomas Gustavsson

    Problem displaying pages in UTF-8

    Tomas Gustavsson Newbie

      Hi (again),

      Using plain JSP I can get the browser to use UTF-8 encoding using:
      <%@ page contentType="text/html; charset=UTF-8" %>

      Using xhtml however that does not work, so the browser uses ISO-8859-1 encoding. It is the HTTP header that is the problem, since both Firefox and Mozilla ignores the meta-tags and goes for the HTTP header, which is ISO by default.
      I found no way to set the default HTTP encoding header in JBoss/Tomcat either.

      Is there anything similar to "<%@ page..." that can be used in xhtml to force tomcat to set the desired content encoding header?