diff --git a/router.php b/router.php index c9076c0..1bb9fb8 100644 --- a/router.php +++ b/router.php @@ -15,6 +15,7 @@ foreach (explode(',', preg_replace('/[A-Z0-9]|q=|;|-|\./', '', $_SERVER['HTTP_AC break; } define('LOCALE', $locale ?? 'en'); +putenv('LANG=C.UTF-8'); setlocale(LC_MESSAGES, 'C.UTF-8'); bindtextdomain('messages', ROOT_PATH . '/locales/' . LOCALE); header('Content-Language: ' . LOCALE);