-->
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.  [ 3 posts ] 
Author Message
 Post subject: quering data (utf-8 encoded) from mysql 4.1
PostPosted: Mon Apr 18, 2005 10:09 am 
Newbie

Joined: Wed Mar 02, 2005 6:28 pm
Posts: 13
Hibernate version: 3.0
Mapping documents:
Code:
<property name="hibernate.connection.url"> jdbc:mysql://192.168.11.89/wfms</property>
<property name="hibernate.connection.useUnicode">true</property>
<property name="hibernate.connection.charSet">utf-8</property>

Name and version of the database I am using: Mysql 4.1.11

The problem is that when I try to fetch data from the Mysql server I get only garbidge considered that the data is (cyrilic charakters - unicode encoded utf8).

Well, I have a running Web application but I need a cyrilic support which I could not supply at this time. I've set utf-i charEncoding on all my jsp documents. Also, as could be seen on the part of my hibernate.cfg.xml file I've added params to use utf-8. Moreover my tables are with default character set - utf8. I read all the related documentation I managed to find.

I'm out of ideas. Please give me some help if possible.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 19, 2005 2:04 am 
Newbie

Joined: Wed Mar 02, 2005 6:28 pm
Posts: 13
The project that I'm talking about is my end of the year school project. Sorry for writing here again, however it's very important to me. Please if some one else have used unicode encoding and mysql for charakters different from latin, post some hints how to fix this.

10x


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 15, 2005 3:58 am 
Newbie

Joined: Mon Oct 11, 2004 4:50 am
Posts: 1
Hi,but you can try to set the value of the connection.charset as 'utf8',not 'utf-8'.It's case-sensitive.

Best regards.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.