Added code to notify PostgreSQL server of utf8 client when opening connection
Signed-off-by: Chris Cormack <crc@liblime.com> Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
8b50bde81b
commit
bc55b2cf6c
|
|
@ -596,6 +596,9 @@ sub _new_dbh
|
|||
$dbh->do("set NAMES 'utf8'") if ($dbh);
|
||||
$dbh->{'mysql_enable_utf8'}=1; #enable
|
||||
}
|
||||
elsif ( $db_driver eq 'Pg' ) {
|
||||
$dbh->do( "set client_encoding = 'UTF8';" );
|
||||
}
|
||||
return $dbh;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue