-->
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: MySQL utf8 problem
PostPosted: Thu Sep 18, 2008 10:30 am 
Newbie

Joined: Thu Sep 18, 2008 10:10 am
Posts: 2
Hi all!
Sorry if similar problem already posted, I did not find anything...

OS: Linux Centos 5
JBoss version: 4.2.1GA
Hibernate version: 3.2.6GA
MySQL connector Java: 5.0.6
JRE: 5

I am using annotations in code like this:
@Column(name="mobileString",length=65535)

1st problem:
When length exceeds 65535, Hibernate creates mediumtext column type for String, and UTF8 char set is lost, i.e. non-English text is saved like '????' from Java.
Does anyone know about this problem?

2nd problem:
When I set the length to 65535 for number of fields in the same table, Hibernate creates text column type and it works good for all of the fields except one. I just can not understand why that single field does not save UTF8 text properly. Nothing different in Java code about it...

Can anyone please help?
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.