my $options = { RaiseError => 1, AutoCommit => 1, mysql_enable_utf8 => 1 }; $dbh = DBI->connect( "dbi:mysql:$db{dbname};$db{hostext}", $db{username}, $db{password}, $options ) || die 'CanĀ“t connect to MYSQL-Server. '.$!; #$dbh->do("set character set utf8"); $dbh->do("set names utf8");