From ab8daa0389a860ed243a18c7a6fe37fc4c355271 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 9 Aug 2017 08:05:52 +0300 Subject: [PATCH] use mysqli_set_charset() to set MYSQL_CHARSET --- classes/db/mysqli.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/db/mysqli.php b/classes/db/mysqli.php index deb29f26..817b48c0 100644 --- a/classes/db/mysqli.php +++ b/classes/db/mysqli.php @@ -76,7 +76,7 @@ class Db_Mysqli implements IDb { $this->query("SET time_zone = '+0:0'"); if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) { - $this->query("SET NAMES " . MYSQL_CHARSET); + mysqli_set_charset($this->link, MYSQL_CHARSET); } return true; -- 2.39.5