-->
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: Auslesen von UTF8 wird zu ISO8859-1?
PostPosted: Wed Nov 25, 2009 10:28 am 
Newbie

Joined: Wed Nov 25, 2009 9:58 am
Posts: 3
Hallo Forum,

ich habe eine UTF8-enabled MySQL-db v5.0.70.
Zusätzlich habe ich die Tabellen mit UTF-8 generiert:
Code:
mysql> show create table person
CREATE TABLE `person` (
  `id` bigint(20) NOT NULL auto_increment,
  `isCustomer` tinyint(1) NOT NULL default '1',
  `name` varchar(60) NOT NULL,
  `givenName` varchar(60) NOT NULL,
  `sex` enum('MALE','FEMALE') NOT NULL,
  `title` varchar(60) default NULL,
  `street` varchar(60) NOT NULL,
  `streetNr` varchar(10) NOT NULL,
  `plz` mediumint(9) NOT NULL,
  `city` varchar(60) NOT NULL,
  `streetNrAddon` varchar(20) default NULL,
  PRIMARY KEY  (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1427 DEFAULT CHARSET=utf8

Dann habe ich mit hibernate v3.2 POJO's generiert, mit folgender Url:

jdbc:mysql://db.smartnet.de/smartprov?useUnicode=true&characterEncoding=utf-8

JDBC ist v5.1.6.

Wenn ich nun mit der personDAO mir die Daten hole, sind die Ergebnisse leider ISO8859-1. Ich weiß nicht warum!

Kann mir da jemand weiterhelfen?
Viele Grüße, Florian


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.