IE 8中文编码字符
我无法在 IE 8 中呈现中文字符。我对此进行了研究,并且我知道元标记可以强制兼容模式。我还知道您可以安装的语言包。 最后我看到微软在他们的中文网站上强制使用IE7兼容模式。 http://www.microsoft.com/zh/cn/default.aspx
我想知道是否有人有任何替代解决方案来解决这个问题。他们似乎没有那么吸引我。我使用utf8作为我的编码,这个问题只出现在IE8中。
I am unable to render Chinese characters in IE 8. I have researched this and I am aware of the meta tag to force compatibility mode. I am also aware of the language pack you can install.
Finally I have seen that Microsoft actually forces IE7 compatibility mode on their Chinese website. http://www.microsoft.com/zh/cn/default.aspx
I am wondering if anyone has any alternatives solutions to this problem. None them seem that appealing to me. I am using utf8 as my encoding and this problem only occurs in IE8.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现了一些似乎有效的东西。阅读此问题后( 如何我可以在不强制兼容模式的情况下让中文字符在 IE8 中显示吗?)我最终使用了下面的样式。该样式使用Arial的备份字体,Arial Unicode MS。
要调用它,您应该仅对 IE8 使用 IE 条件。请注意,这在 IE8 以外的浏览器中可能会出现一些问题。请参阅 http://www.google.com /support/forum/p/gmail/thread?tid=3c8cf2891a0bcfe5&hl=en
另请注意,Arial MS unicode 安装在 Vista 和 XP 上,并且还与 OS X 10.5 及更高版本捆绑在一起。它不随 Windows 7 一起提供,但随 Microsoft Office 一起分发。有关详细信息,请参阅:http://emailmarketingvoodoo.com/blog/post/arial-unicode-ms-your-safest-bet-for-consistency-foreign-language-display/
所以这里是代码:
有了这个你可以避免需要调用丑陋的元标记来强制 IE8 进入兼容模式。
I found something that appears to work. After reading this question ( How can I make Chinese characters show in IE8 without forcing compatibility mode? ) I ended up using the style below. The style uses a backup font of Arial, Arial Unicode MS.
To call this you SHOULD use IE conditionals for only IE8. Be aware this may have some issues in browsers other than IE8. See http://www.google.com/support/forum/p/gmail/thread?tid=3c8cf2891a0bcfe5&hl=en
Also please note Arial MS unicode is installed on Vista and XP and is also bundled with OS X 10.5 and later. It does not ship with Windows 7 but is distributed with Microsoft Office. For more info see: http://emailmarketingvoodoo.com/blog/post/arial-unicode-ms-your-safest-bet-for-consistent-foreign-language-display/
So here is the code:
With this you can avoid the need to call the ugly meta tag to force IE8 into compatibility mode.