From 56c392bf2f8ee6f8ce67e2acdb8c7b6be6fa1783 Mon Sep 17 00:00:00 2001 From: Hannes Riebl <hannes.riebl@sub.uni-goettingen.de> Date: Fri, 18 Jul 2014 17:03:07 +0200 Subject: [PATCH] Set locale --- .../include/tgSqliteDB.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/info.textgrid.middleware.tgauth.tgaccount/include/tgSqliteDB.class.php b/info.textgrid.middleware.tgauth.tgaccount/include/tgSqliteDB.class.php index 009c430..1259fe2 100644 --- a/info.textgrid.middleware.tgauth.tgaccount/include/tgSqliteDB.class.php +++ b/info.textgrid.middleware.tgauth.tgaccount/include/tgSqliteDB.class.php @@ -57,6 +57,8 @@ class tgSqliteDB { $result = $result->fetchArray(SQLITE3_ASSOC); $result["pref_uid"] = str_replace(" ", "", $result["pref_uid"]); + + setlocale(LC_CTYPE, 'de_DE'); $result["pref_uid"] = iconv("UTF-8", "ASCII//TRANSLIT", $result["pref_uid"]); return $result; -- GitLab