From: Andrew Dolgov Date: Wed, 9 Aug 2017 05:05:52 +0000 (+0300) Subject: use mysqli_set_charset() to set MYSQL_CHARSET X-Git-Tag: 17.12~132 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ab8daa0389a860ed243a18c7a6fe37fc4c355271;p=tt-rss.git use mysqli_set_charset() to set MYSQL_CHARSET --- 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;