-->
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.  [ 5 posts ] 
Author Message
 Post subject: Hibernate --> MySQL: character encoding
PostPosted: Mon Feb 06, 2006 1:22 am 
Senior
Senior

Joined: Tue Sep 13, 2005 2:01 am
Posts: 137
A J2EE web application using JBoss 4.0.3SP1 with Hibernate on Window XP.

DB: MySQL 4.1, UTF8.

Client need to tell MySQL the following things:
Character-set-client, Character-set-connection,
Character-set-results

How to config Hibernate to use UTF8 to communicate with MySQL?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 08, 2006 2:14 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
through the JDBC properties.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 09, 2006 10:23 pm 
Senior
Senior

Joined: Tue Sep 13, 2005 2:01 am
Posts: 137
emmanuel wrote:
through the JDBC properties.

where are the JDBC properties? Thanks for help.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 10, 2006 7:16 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
That's not the first time I see you asking questions clearly stated in the documentation.
Please read twice
http://www.hibernate.org/hib_docs/v3/reference/en/html_single/
http://www.hibernate.org/hib_docs/annotations/reference/en/html_single/

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 10, 2006 4:26 pm 
Newbie

Joined: Mon Jan 23, 2006 1:11 pm
Posts: 15
Location: Leuven, Belgium
Overhere it would look like (But as emmanuel already said, a simple websearch for mysql, jdbc, utf-8 returns everything you need to know)

Code:
jdbc:mysql://my.example.com:3306/mydatabase?useOldUTF8Behavior=true&useUnicode=true&characterEncoding=UTF-8

_________________
Don't applaud, throw money (paypal to timvw@users.sourceforge.net) - http://www.timvw.be


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