Enable UTF-8 for Entity?
Hello,
I want to write an entity with utf-text into the database. But the database gets alwasy "?". Where can I say the entitymanager that the insert should be make with UTF-8?
The table creation:
DROP TABLE IF EXISTS `jbossdb`.`NEWS`;
CREATE TABLE `jbossdb`.`NEWS` (
`NEWS_ID`int(11) NOT NULL auto_increment,
`CONTENT` text,
`AUTOR` varchar(255) character set utf8default NULL,
`DATE_OF_CREATION` datetimedefault NULL,
`HEADLINE` varchar(255)default NULL,
PRIMARY KEY (`NEWS_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
the setting:
news1.setAutor(new String("Hugo der AffeΕλλάδα".getBytes(),"UTF-8"));
Can anybody help me?

