Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0
-
None
-
Windows XP + IE 6.0 (Chinese version), Other OS and browsers may also apply although having not tested yet.
3.0-dev (unreleased)
-
IE 6.0
-
1
Description
The html content-Type meta info:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
is vital for browser decoding utf-8 encoded multi-byte charset correctly while showing local cached pages.
Without the meta info, the browser can show the page correctly when if it is send back from the server directly. The browser can get encoding indication from the HTTP response content-Type header.
When the browser show the same GET response later, it use the local cached page, hence there is no HTTP content-Type header. If the html meta info is also missing, the browser will know nothing about the actual page encoding. The browser may guess the page encoding as local codepage such as GB18030, Shift-JIS, etc (depending on the OS and browser environment), leading chaotic outputs.