Today, I downloaded a code from the Internet and came back for debugging. at first, I reported a code error. After debugging, the code was finally okay. However, IE is blank, and the source code of the web page is displayed. it is all output, but IE is blank, and I am dizzy. I tried it again and asked my colleagues. the code was okay. Inadvertently, save the file as found, this file is UTF-8 encoding, finally found the problem. The code defines: & lt; metahttp-equivContent-a code downloaded from the Internet today is returned for debugging. at first, an error is reported. After debugging, the code is no longer faulty.
However, IE is blank, and the source code of the web page is displayed. it is all output, but IE is blank, and I am dizzy.
I tried it again and asked my colleagues. the code was okay.
Inadvertently, save the file as found, this file is UTF-8 encoding, finally found the problem.
The code defines:
But the file is encoded as a UTF-8, which leads to a display error.
Change the file encoding to ANSI and refresh the page. the long-awaited things are finally displayed.
Summary: If the character set defined in the file header is inconsistent with the file encoding, the page output may be blank.