[b] Eclipse: 3.0.1
[b]Hibernate version: 3.0.5
[b]Name and version of the database you are using: MySQL 4.0
Hi... I'm having problem saving chinese chars with Hibernate into MySQL InnoDB. I'm using Eclipse 3.0 IDE to code Java/Hibernate. I config Eclipse and MySQL Admin to use UTF-8. I also explicitly set hibernate.connection.chatSet = utf-8.
I'm testing my Java app using static main() with Dfile.encoding=utf-8.
On Eclipse, I can pass chinese chars from classes to classes without problem. On MySQL Query Browser, I can insert/update chinese chars into tables. BUT.... when using Hibernate in Eclipse to Session.saveOrUpdate() class with chinese chars, I got ??? in the records. When trying to Session.get() a record, I got NullPointer exception because a MySQL record with chinese chars (inserted from MySQL Query Browser) is not returned....it is there.
Based on the above testing, I highly suspect having to do with Hibernate.
Any idea?
Thanks.
AL
|