1 Reply Latest reply on Jun 10, 2007 6:41 PM by Jimisola Laursen

    JBoss to use UTF-8

    Kavitha Kannan Newbie

      Hi,

      Can anybody know how to configure the jboss application server use the utf-8 character encoding instead of the default one.

        • 1. Re: JBoss to use UTF-8
          Jimisola Laursen Newbie

           

          "kavithak" wrote:
          Hi,

          Can anybody know how to configure the jboss application server use the utf-8 character encoding instead of the default one.


          Hi,

          I'm a newbie and I haven't verified this yet. But, I know that it works for a regular web application (war) and also that liferay uses it in its DataSource file:
          <datasources>
           <local-tx-datasource>
           <jndi-name>DefaultDS</jndi-name>
           <connection-url>jdbc:mysql://localhost:3306/jbossdb?useUnicode=true&characterEnc
          oding=UTF-8</connection-url>
           <driver-class>com.mysql.jdbc.Driver</driver-class>
           <user-name>user</user-name>
           <password>password</password>
           <min-pool-size>5</min-pool-size>
           <max-pool-size>20</max-pool-size>
          
           <metadata>
           <type-mapping>mySQL</type-mapping>
           </metadata>
           </local-tx-datasource>
          </datasources>


          Please let me know if it works.

          Regards,
          Jimisola