Hello forum,
i've got an UTF8-enabled MySQL-db v5.0.70.
Additionally, i enabled the tables as UTF-8:
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
Then i generated POJO's via hibernate v3.2, using following url:
jdbc:mysql://db.smartnet.de/smartprov?useUnicode=true&characterEncoding=utf-8JDBC is v5.1.6.
If i access the results via personDAO, the results are ISO8859-1. I don't know why?
Any help would be appreciated,
kind regards, Florian