philippe_mingo 23 年之前
父节点
当前提交
2391925b00
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      functions/i18n.php

+ 1 - 1
functions/i18n.php

@@ -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).");