4 Replies Latest reply on Feb 21, 2002 1:23 PM by Pete Beck

    Character encoding (parameters for JDBC driver)

    Martin Stepanek Newbie

      Hi all,

      I use JBoss 3.0.0 alpha with MySQL and need to set the character encoding as recommended in some posts here (e.g. http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t=forums/ but I don't know how to get it work in this version of JBoss.

      I've tried to modify the ConnectionURL in mysqldb-default-service.xml:
      ...
      ConnectionURL=jdbc:mysql://localhost/gis?characterEncoding=Cp1250&useUnicode=true
      DriverClass=org.gjt.mm.mysql.Driver
      UserName=root
      ...

      But I've got an exception. So I've tried to add following attribute:

      ...

      characterEncoding=Cp1250
      useUnicode=true

      ...

      But I've got an exception too.

      What is the correct way to set encoding for CMP in JBoss 3.0?

      Thanx for any answer...

      Martin