问题描述
我试图使我的网站在IE 9上正常工作。但是从一开始,它就显示出许多错误。
I am trying to make my site working on IE 9. But from the beginning itself, it shows many errors.
HTML1114: Codepage iso-8859-1 from (HTTP header) overrides conflicting codepage utf-8 from (META tag) index.html
这是我在IE 9中加载时的错误,但在Firefox和Chrome中运行正常。我正在使用HTML 5,因此标头如下所示:
This is the error when I load in IE 9, but it's working fine in Firefox and Chrome. I am using HTML 5, so my header looks like below -
<meta http-equiv='cache-control' content='0' >
<meta http-equiv='ETag' content='o2389r-98ur0-w3894tu-q894' />
<meta http-equiv='pragma' content='no-cache' />
<meta name="expires" content="never">
由于这些错误,我被困住了。而且没有jQuery或javascript都能正常工作。甚至无法登录。请帮助我。另外,建议我使用一个调试器来跟踪JavaScript。
Due to these errors, I am stuck. And no jQuery or javascript works. Can't even log in. Please help me. And also, suggest me a debugger for tracking javascript.
推荐答案
出现此错误是因为您在 Content-Type HTTP Header 和中指定了编码< meta>
标记,它们指定了不同的代码页。
This error shows up because you specified encoding inboth Content-Type HTTP Header and <meta>
tag, and they specifies different codepage.
这不是错误,它是只是警告,我认为它不会破坏您的网页。 Mozilla只是不报告此类警告,但具有与IE9相同的行为。
It's not an error, it's just a warning and I think it would not break your webpage. Mozilla just doesn't report such warnings but has the same behavior as IE9.
尝试修改您的 Content-Type HTTP标头以提供一个UTF-8编码可能会解决此问题。
Try to modify your Content-Type HTTP Header to give a UTF-8 encoding would probably solve this problem.
这篇关于IE出现HTML5标头问题。charutf-8编码显示为错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!