How can I make Chinese characters show in IE8 without forcing compatibility mode?

后端 未结 3 480
花落未央
花落未央 2021-01-03 06:54

All the solutions for this issue say to use , which works because it forces the browser t

3条回答
  •  梦毁少年i
    2021-01-03 07:23

    This sounds like an encoding problem to me. Chinese characters are probably being output using UTF-8 encoding, but the browser is not being told that and is defaulting to another encoding.

    Try including this line:

    
    

    That should force the browser into UTF-8 encoding. (This line is included in the site linked in the referenced question: http://www.canadainternational.gc.ca/china-chine/index.aspx?lang=eng, which works fine in my IE8 and defaults to UTF-8.)

    Note that the original question states that this is actually a separate issue entirely, involving IE8 relying on installed Windows language packs, while IE7 and earlier did not.


    Alternatively as a quick-hack fix, you can just use IE conditionals to only present the meta tag to IE8 browsers.

    
    

    IE7 should ignore this line, causing it to render normally.

提交回复
热议问题