explanation of weird chars and header
[squirrelmail.git] / functions / page_header.php
index 8fed43b9dc722fa41f3c0c8e4aaaf8eb8c7a4bb1..51f818dcafd69f541e4c42b0388aa7342f12b94c 100644 (file)
@@ -53,6 +53,13 @@ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = true
     }
 
     if ($squirrelmail_language == 'ja_JP') {
     }
 
     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";
     }
         echo "<!-- \xfd\xfe -->\n";
         echo '<meta http-equiv="Content-type" content="text/html; charset=euc-jp" />' . "\n";
     }