Bugfix
authorphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 22 Aug 2002 10:14:25 +0000 (10:14 +0000)
committerphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 22 Aug 2002 10:14:25 +0000 (10:14 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3406 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/i18n.php

index cf7750d9ad6b08c820044d74a84f89c3405a05e1..93217f1c7525b174e7e1b0c8d3b965e5657ecc71 100644 (file)
@@ -745,7 +745,7 @@ function set_up_language($sm_language, $do_search = false) {
         }
         setlocale(LC_ALL, $sm_notAlias);
         $squirrelmail_language = $sm_notAlias;
-        if ($squirrelmail_language == 'ja_JP') {
+        if ($squirrelmail_language == 'ja_JP' && function_exists('mb_detect_encoding') ) {
             header ('Content-Type: text/html; charset=EUC-JP');
             if (!function_exists('mb_internal_encoding')) {
                 echo _("You need to have php4 installed with the multibyte string function enabled (using configure option --with-mbstring).");