Enable UTF-8 on MySQL connection

master
Daniel Berteaud 11 years ago
parent e8eedce77c
commit 77f5239164
  1. 8
      public/vroom.pl

@ -136,7 +136,13 @@ plugin Mailer => {
# Wrapper arround DBI
helper db => sub {
my $dbh = DBI->connect($config->{dbi}, $config->{dbUser}, $config->{dbPassword}) || die "Could not connect";
my $dbh = DBI->connect($config->{dbi},
$config->{dbUser},
$config->{dbPassword},
{
mysql_enable_utf8 => 1,
}
) || die "Could not connect";
$dbh
};

Loading…
Cancel
Save