Tell MySQL to return UTF-8 strings on win32.
(cherry picked from commit 671fbb6835
)
This commit is contained in:
parent
3d76ef546c
commit
5b8a345f9e
|
@ -125,6 +125,9 @@ sub db_connect ($$$$$$) {
|
|||
# Enable character semantics
|
||||
$dbh->{'mysql_enable_utf8'} = 1;
|
||||
|
||||
# Tell the server to return UTF-8 strings.
|
||||
$dbh->do("SET NAMES 'utf8';") if ($^O eq 'MSWin32');
|
||||
|
||||
return $dbh;
|
||||
}
|
||||
elsif ($rdbms eq 'postgresql') {
|
||||
|
|
Loading…
Reference in New Issue