summaryrefslogtreecommitdiff
path: root/inc/auth
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2008-11-08 23:59:54 +0100
committerAndreas Gohr <andi@splitbrain.org>2008-11-08 23:59:54 +0100
commitf004e0f446916ce2751e01f853b602ab6bd6d23f (patch)
tree0e5a0d86bddf809bc98e28030a0eb6263c1f4e9f /inc/auth
parent79d0084189da3cfab3b5d009d69246e1bee1070c (diff)
downloadrpg-f004e0f446916ce2751e01f853b602ab6bd6d23f.tar.gz
rpg-f004e0f446916ce2751e01f853b602ab6bd6d23f.tar.bz2
default to UTF-8 client encoding for MySQL backend FS#1527
darcs-hash:20081108225954-7ad00-70ee787910f6410625c3aa1dde39ca58f97903ee.gz
Diffstat (limited to 'inc/auth')
-rw-r--r--inc/auth/mysql.class.php3
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