explanation of weird chars and header
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 19 Dec 2004 15:45:53 +0000 (15:45 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 19 Dec 2004 15:45:53 +0000 (15:45 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8442 7612ce4b-ef26-0410-bec9-ea0150e637f0

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') {
+        /*
+         * 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";
     }