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?

[970 byte] By [RooKeea] at [2007-11-27 6:28:27]
# 1
I found the problem. It was only a database config error. The database was not set to utf8_general_ciCREATE DATABASE `jbossdb` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;Thanks for help.
RooKeea at 2007-7-12 17:51:41 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...