From 16f6a54fa719cc79ff942e4bb8139d7ca09ed997 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 8 Dec 2015 13:39:09 +0100 Subject: fixes #384 use built-in functions to set charset --- include/dblayer/functions_mysql.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/dblayer/functions_mysql.inc.php') diff --git a/include/dblayer/functions_mysql.inc.php b/include/dblayer/functions_mysql.inc.php index a1853b223..9cf25e76f 100644 --- a/include/dblayer/functions_mysql.inc.php +++ b/include/dblayer/functions_mysql.inc.php @@ -53,7 +53,7 @@ function pwg_db_check_charset() { $db_charset = DB_CHARSET; } - pwg_query('SET NAMES "'.$db_charset.'"'); + mysql_set_charset($db_charset); } function pwg_db_check_version() -- cgit v1.2.3