-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Can't save foreign chars with Hibernate into MySQL....
PostPosted: Fri Jan 20, 2006 10:18 am 
Newbie

Joined: Fri Jan 20, 2006 1:26 am
Posts: 3
[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 foreign 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. 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 foreign chars (inserted from MySQL Query Browser) is not returned....it is there.

I also explicitly set hibernate.connection.chatSet = utf-8.

Any idea?

Thanks.

AL


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.