From 6911933b895b7cc5e78a7f3e4c65dcd09060a99a Mon Sep 17 00:00:00 2001 From: Thomas Koenig Date: Mon, 23 Apr 2007 17:52:20 +0200 Subject: support for setting the MySQL charset for auth backend darcs-hash:20070423155220-3f9f2-62892a6a0d4f170e24a86d385f2c4a1e1f7d25fa.gz --- inc/auth/mysql.class.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'inc/auth/mysql.class.php') diff --git a/inc/auth/mysql.class.php b/inc/auth/mysql.class.php index 86a5fefa2..05ef828ce 100644 --- a/inc/auth/mysql.class.php +++ b/inc/auth/mysql.class.php @@ -718,6 +718,9 @@ class auth_mysql extends auth_basic { $this->dbsub = $result[3]; } $this->dbcon = $con; + if(!empty($this->cnf['charset'])){ + mysql_query('SET CHARACTER SET "' . $this->cnf['charset'] . '"', $con); + } return true; // connection and database successfully opened } else { mysql_close ($con); -- cgit v1.2.3