From 986fc9c28708aaf4c8a7ce92bd4f5d2a7b7f00d7 Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Wed, 8 Jun 2016 02:57:38 +0000 Subject: [PATCH] i18n: Set UTF-8 as default locale --- include/class.i18n.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/class.i18n.php b/include/class.i18n.php index 3954ea0d0..a7e23a8ee 100644 --- a/include/class.i18n.php +++ b/include/class.i18n.php @@ -490,6 +490,10 @@ class Internationalization { TextDomain::setDefaultDomain($domain); TextDomain::lookup()->setPath(I18N_DIR); + // Set the default locale to UTF-8. It will be changed by + // ::setLocaleForUser() later for web requests. See #2910 + TextDomain::setLocale(LC_ALL, 'en_US.UTF-8'); + // User-specific translations function _N($msgid, $plural, $n) { return TextDomain::lookup()->getTranslation() -- GitLab