set db charset to utf-8

This commit is contained in:
nikolark committed 2016-08-17 00:08:08 +02:00
1 parent 3ddf7a9b20
commit c3f019b86c
1 file changed
+1 -1
+1 -1
View File
@@ -22,7 +22,7 @@ function db_connect($host = "default") {
return false;
}
//$conn->query('SET NAMES utf8'); // set charset
$conn->query('SET NAMES utf8'); // set charset
$GLOBALS['db_conn'][$host] = $conn;
return $GLOBALS['db_conn'][$host];