Browse Source

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>
3.0.x
Chris Nighswonger 17 years ago
committed by Joshua Ferraro
parent
commit
bc55b2cf6c
  1. 3
      C4/Context.pm

3
C4/Context.pm

@ -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…
Cancel
Save