-->
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.  [ 2 posts ] 
Author Message
 Post subject: Inserting Japanese using hibernate.
PostPosted: Wed Sep 20, 2006 4:03 am 
Newbie

Joined: Wed Sep 20, 2006 3:40 am
Posts: 1
Hi,

I am trying to insert Japanese characters in Database using hibernate. I have set the following character set property in hibernate.cfg.xml
Code:
<property name="connection.charSet">UTF-8</property>



It is working fine for Ms-SQL, but when we insert data into MySQL it is not inserting it accurately. It put question mark signs (?) in the field. The datatype for MySQL field is varchar and collation is set to sjis_japanese_ci.

I have checked the driver of MySQL, using another program directly inserting into Database using the following connection string.
Code:
jdbc:mysql://localhost:3306/newjap?useUnicode=yes&characterEncoding=sjis


it is inserting and retrieving correctly. There is some problem when we use hibernate layer.

Can you people help me out, a.s.a.p!
Hibernate version:
3.0

Mapping documents:
hibernat.cfg.xml

Name and version of the database you are using:
MySQL 5


Top
 Profile  
 
 Post subject: I have same problem
PostPosted: Wed Nov 29, 2006 3:31 am 
Newbie

Joined: Wed Nov 29, 2006 3:02 am
Posts: 1
Hello

Did you solve your problem?
I have same problem with Hibernate 3.2 and PostgreSql 8.1

If you can solve this problem please write the solution.

Thanks. Joe


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

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.