IE issues with HTML5 encoding headers.char utf-8 showing as error

I am trying to get my site to work in IE 9. But from the beginning it shows a lot of errors.

HTML1114: Codepage iso-8859-1 from (HTTP header) overrides conflicting codepage utf-8 from (META tag) index.html   

This is a load bug in IE 9, but it works 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">   

      

Due to these errors, I am stuck. Both jQuery and javascript don't work. I can not enter. Please help me. And also suggest me a debugger for javascript tracking.

+3


source to share


2 answers


This error appears because you specified an encoding in the Content-Type HTTP Header and tag , and they set a different code page. <meta>

This is not a bug, this is just a warning and I think it will not break your webpage. Mozilla simply doesn't report such warnings, but it has the same behavior as IE9.



Try changing the Content-Type HTTP header to give UTF-8 encoding will probably fix this problem.

+2


source


I believe that your server can override your meta tags. This post may be helpful:

http://social.msdn.microsoft.com/forums/is/web/thread/2b7be95a-a90b-425f-b799-1b68a6d94f77



For javascript debugging, if it's not a tricky thing, I use console.log command ...

0


source







All Articles