use mysqli_set_charset() to set MYSQL_CHARSET
This commit is contained in:
parent
20d2195f13
commit
ab8daa0389
|
@ -76,7 +76,7 @@ class Db_Mysqli implements IDb {
|
||||||
$this->query("SET time_zone = '+0:0'");
|
$this->query("SET time_zone = '+0:0'");
|
||||||
|
|
||||||
if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) {
|
if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) {
|
||||||
$this->query("SET NAMES " . MYSQL_CHARSET);
|
mysqli_set_charset($this->link, MYSQL_CHARSET);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue