-->
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: Hibernate 3.1.3 and UTF-8
PostPosted: Tue Dec 05, 2006 1:44 pm 
Newbie

Joined: Tue Dec 05, 2006 1:27 pm
Posts: 2
Hi,

I have a problem with Hibernate and MySQl 5.

I work with Tomcat 5.5.17,Hibernate 3.1.3,OpenCms and Servlets.

I have the next error:

Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=';

I need to configurate Hibernate to work with UTF-8 and I can't change the any character_set of the MySQL because It's a especification of proyect.

I have seen and try the next property in the net for Hibernate.cfg.xml

<property name="hibernate.connection.charset">UTF-8</property>

but It doesn't work.

I look for some examples in the net but I can resolve my problem because lot of them need that I change the MySql configuration.

Thanks


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.