Operating System: Windows XP SP3
Symptom: the page is blank.
Cause: Incorrect HTML character encoding
Test reproduction:
IE6/8 has no problems and is monopolized by IE7:
<HTML> <br/> <pead> <br/> <title> source </title> <br/> <meta http-equiv = "Content-Type" content =" text/html; charset = UTF-8 "/> <br/> </pead> <br/> <body> if you cannot see this text, note: IE7 does not parse the HTML character encoding correctly </body> <br/> </ptml>
The solution is also very simple. Set the <meta> label of the character set to the front, or add a space at the end of the title text:
<HTML> <br/> <pead> <br/> <meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8 "/> <br/> <title> source </title> <br/> </pead> <br/> <body> if you cannot see this text, note: IE7 does not parse the HTML character encoding correctly </body> <br/> </ptml>
You can see that IE7 incorrectly identifies character encoding by default:
PS: when saving the test HTML, select the UTF-8 file encoding, be sure not to save the BOM, otherwise IE7 will not appear this bug. Windows notepad cannot control whether to save Bom. Other text editors such as editplus can be used.