From f004e0f446916ce2751e01f853b602ab6bd6d23f Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 8 Nov 2008 23:59:54 +0100 Subject: default to UTF-8 client encoding for MySQL backend FS#1527 darcs-hash:20081108225954-7ad00-70ee787910f6410625c3aa1dde39ca58f97903ee.gz --- inc/auth/mysql.class.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'inc/auth') diff --git a/inc/auth/mysql.class.php b/inc/auth/mysql.class.php index ea1fa2ae5..3d5af3640 100644 --- a/inc/auth/mysql.class.php +++ b/inc/auth/mysql.class.php @@ -42,6 +42,9 @@ class auth_mysql extends auth_basic { return; } + // default to UTF-8, you rarely want something else + if(!isset($this->cnf['charset'])) $this->cnf['charset'] = 'utf8'; + $this->defaultgroup = $conf['defaultgroup']; // set capabilities based upon config strings set -- cgit v1.2.3