Hi,

I'm using Ibatis 2.1.7.597

mysql-connector-java 5.0.5
mysql V 5.0.45
JDK 1.6


I'm using the following script to create the database

> create database mydb default charset utf8 COLLATE utf8_general_ci;

I have set the following config in the my.ini

> my.ini
> [mysqld]
> default-character-set=UTF8


And the mysql connection url is like the following;

> jdbc:mysql://localhost/mydb?useUnicode=true&characterEncoding=UTF8


But if I insert the Chinese char into the table, i still got the junk characters.

Anyone have solutions to this?


Thanks in advance,
James


Reply via email to