Methods for solving the problem of IE not actively identifying UTF-8 coding--Application techniques
Source: Internet
Author: User
In the process of static dynamic page before, ie open the page does not display content, but the HTML code data has been downloaded, the "character code" manually changed to "Utf-8" can be displayed, to Google search, to find a solution, in order to facilitate their own also convenient for others to paste the solution!
Google search on the solution
--------------------------------------------------------------------------------
When using IE as a browser on the Windows operating system. The problem often occurs when browsing a Web page that uses UTF-8 encoding, which is not automatically detected by the browser (that is, when the Automatically select encoding format is not set) the encoding used for the page. Even if the page has been declared in the encoding format:
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
, which results in the blank output of some pages containing Chinese UTF-8 encoding.
If you're using Mozilla, Mozilla Firefox, and Sarafi browsers, that's not going to be the problem. This is because IE parsing the page encoding in HTML is preferred, then the HTTP header message, and the Mozilla series browser is just the opposite.
Since UTF-8 represents a man for 3 bytes, the average GB2312 or BIG5 is two. Page output, because of the above reasons, so that the browser parsing, output <title></title> content, if in the </title> before the odd number of full-width characters, ie UTF-8 as two byte parsing when half of Chinese characters, At this time the half of the Chinese characters will be combined with </title> < into a garbled word, resulting in IE can not read the <title> section, so that the entire page for the empty hundred output. And this time, if you look at the source file, you will find that the whole leaf has actually been exported.
Therefore, the simplest solution is to http-equiv= the character definition <meta in the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service