summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/util.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index 9848d6f8e..87f97685c 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -132,6 +132,7 @@ function common_end_xml() {
}
function common_init_language() {
+ mb_internal_encoding('UTF-8');
$language = common_language();
# So we don't have to make people install the gettext locales
putenv('LANGUAGE='.$language);