diff options
author | Andreas Gohr <andi@splitbrain.org> | 2008-11-08 23:59:54 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2008-11-08 23:59:54 +0100 |
commit | f004e0f446916ce2751e01f853b602ab6bd6d23f (patch) | |
tree | 0e5a0d86bddf809bc98e28030a0eb6263c1f4e9f | |
parent | 79d0084189da3cfab3b5d009d69246e1bee1070c (diff) | |
download | rpg-f004e0f446916ce2751e01f853b602ab6bd6d23f.tar.gz rpg-f004e0f446916ce2751e01f853b602ab6bd6d23f.tar.bz2 |
default to UTF-8 client encoding for MySQL backend FS#1527
darcs-hash:20081108225954-7ad00-70ee787910f6410625c3aa1dde39ca58f97903ee.gz
-rw-r--r-- | inc/auth/mysql.class.php | 3 |
1 files changed, 3 insertions, 0 deletions
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 |