mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
Tell MySQL to return UTF-8 strings on win32.
This commit is contained in:
parent
5a68d2a065
commit
671fbb6835
@ -126,6 +126,9 @@ sub db_connect ($$$$$$) {
|
|||||||
# Enable character semantics
|
# Enable character semantics
|
||||||
$dbh->{'mysql_enable_utf8'} = 1;
|
$dbh->{'mysql_enable_utf8'} = 1;
|
||||||
|
|
||||||
|
# Tell the server to return UTF-8 strings.
|
||||||
|
$dbh->do("SET NAMES 'utf8';") if ($^O eq 'MSWin32');
|
||||||
|
|
||||||
return $dbh;
|
return $dbh;
|
||||||
}
|
}
|
||||||
elsif ($rdbms eq 'postgresql') {
|
elsif ($rdbms eq 'postgresql') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user