4 Replies Latest reply on Jan 12, 2010 4:22 PM by Mustafa Sait Ozen

    UTF-8 Encoding For JBoss 5.1 AS

    Mustafa Sait Ozen Newbie

      I have an encoding problem with JBoss AS 5.1 . There are encoding problems at my html's. The steps that I have done.

      1- Added <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> between <head> tags in html files.

      2- Changed

      <Connector port="8080" address="${jboss.bind.address}"   
           maxThreads="250" maxHttpHeaderSize="8192"
           emptySessionPath="true" protocol="HTTP/1.1"
           enableLookups="false" redirectPort="8443" acceptCount="100"
           connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="UTF-8" useBodyEncodingForURI="true" />

      in jboss/server/default/deploy/jbossweb.sar/server.xml

      3- Added

      <web:character-encoding-filter encoding="UTF-8"
                override-client="true" url-pattern="*.seam" />

      in components.xml

      4- Added -Dfile.encoding = utf-8 in JBoss AS start JVM arguments.

      5- Set html file encodings as UTF8

      With FireFox, when I look Page Info, it points out its encoding is ISO-8859-1 and meta is text/html; charset=UTF-8 .

      How can I can ISO-8859-1 encoding type to UTF-8 ?