From d0fc019d7f82d6befe47ea345886223db1101fe3 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Wed, 10 Feb 2010 08:31:48 -0500 Subject: [PATCH] --- server/lib/classes/db_mysql.inc.php | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/server/lib/classes/db_mysql.inc.php b/server/lib/classes/db_mysql.inc.php index 1a3b978..364fd7e 100644 --- a/server/lib/classes/db_mysql.inc.php +++ b/server/lib/classes/db_mysql.inc.php @@ -52,6 +52,7 @@ $this->dbName = $conf["db_database"]; $this->dbUser = $conf["db_user"]; $this->dbPass = $conf["db_password"]; + $this->dbCharset = $conf['db_charset']; //$this->connect(); } @@ -80,6 +81,8 @@ $this->updateError('DB::connect()-> mysql_connect'); return false; } + $this->queryId = @mysql_query('SET NAMES '.$this->dbCharset, $this->linkId); + $this->queryId = @mysql_query("SET character_set_results = '".$this->dbCharset."', character_set_client = '".$this->dbCharset."', character_set_connection = '".$this->dbCharset."', character_set_database = '".$this->dbCharset."', character_set_server = '".$this->dbCharset."'", $this->linkId); } return true; } -- Gitblit v1.9.1