From 449760eb2a889c1ef207d2f49006e46bb9059e84 Mon Sep 17 00:00:00 2001 From: Sergey Tsalkov Date: Thu, 17 Mar 2011 13:14:39 -0400 Subject: [PATCH] set the character encoding in the "more proper" way, as recommended by the mysqli manual --- db.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db.class.php b/db.class.php index d0cdd17..a9cba9e 100644 --- a/db.class.php +++ b/db.class.php @@ -47,7 +47,7 @@ class DB if (DB::$dbName != '') $dbName = DB::$dbName; DB::$current_db = $dbName; $mysql = new mysqli(DB::$host, DB::$user, DB::$password, $dbName, DB::$port); - DB::queryNull("SET NAMES %s", DB::$encoding); + $mysql->set_charset(DB::$encoding); } return $mysql;