浏览代码

explanation of weird chars and header

tokul 20 年之前
父节点
当前提交
336c54cb94
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      functions/page_header.php

+ 7 - 0
functions/page_header.php

@@ -53,6 +53,13 @@ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = true
     }
 
     if ($squirrelmail_language == 'ja_JP') {
+        /*
+         * force correct detection of charset, when browser does not follow 
+         * http content-type and tries to detect charset from page content.
+         * Shooting of browser's creator can't be implemented in php.
+         * We might get rid of it, if we follow http://www.w3.org/TR/japanese-xml/ 
+         * recommendations and switch to unicode.
+         */ 
         echo "<!-- \xfd\xfe -->\n";
         echo '<meta http-equiv="Content-type" content="text/html; charset=euc-jp" />' . "\n";
     }