diff --git a/html/setup.php b/html/setup.php
index 38dc97d2c95baee1d393fb501421be5e07bd2926..623394b1a5587758ba7df906583d0860e1ade9ec 100644 (file)
--- a/html/setup.php
+++ b/html/setup.php
}
$lang = $_SESSION['lang'];
}
$lang = $_SESSION['lang'];
+/* Append .UTF-8 to language string if necessary */
+if(!preg_match("/utf(-)8$/i",$lang)){
+ $lang .= ".UTF-8";
+}
putenv("LANGUAGE=");
putenv("LANG=$lang");
setlocale(LC_ALL, $lang);
putenv("LANGUAGE=");
putenv("LANG=$lang");
setlocale(LC_ALL, $lang);