-
1. Re: Setting characterEncoding to connect Mysql
cbzhou Jun 18, 2003 9:37 PM (in response to empty11)Hi there,
I'm just new both to jboss and mysql :), Assuming you're familiar with the jdbc url, then I wonder whether the unavailable euc-kr due to your syntax error of your jdbc url?
original url:
<connection-url>jdbc:mysql://127.0.0.1:3306/db_empty11?useUnicode=true;characterEncoding=euc-kr</connection-url>
which use the semicolon to seperate the paramenter list, should we use ampersand instead? like:
<connection-url>jdbc:mysql://127.0.0.1:3306/db_empty11?useUnicode=true & characterEncoding=euc-kr</connection-url>
good luck. -
2. Re: Setting characterEncoding to connect Mysql
ipozeng Aug 12, 2003 4:50 AM (in response to empty11)In xml '&' should be "&",right ?
<local-tx-datasource>
<jndi-name>jdbc/OmnetDemo</jndi-name>
<connection-url>jdbc:mysql://127.0.0.1:3306/demo?useUnicode=true&characterEncoding=GBK</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
omnet123
<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
</local-tx-datasource>