拉丁字符显示在页面的某些部分而不是其他部分
the page in question is Apple Amor
You can see that in the footer the spanish vowels seem to be showing properly , but in the slide down bar(header) they get messed up.
Any ideas why ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的页面采用
ISO-8859-1
编码。无论该标头来自何处,它很可能是用UTF-8
编码的。您必须将页面的字符集更改为
UTF-8
(这可能会产生一些后果)或转换来自标头的传入数据。我不知道它来自哪里,所以很难说出正确的方法是什么。关于该问题的强制性基本阅读:每个软件开发人员绝对、肯定必须了解 Unicode 和字符的绝对最低限度套装(没有任何借口!)
Your page is encoded in
ISO-8859-1
. Wherever that header comes from, it is most likely encoded inUTF-8
.You would have to change the character set of your page to
UTF-8
(that would probably have some consequences) or convert the incoming data from the header. I don't know where it's coming from, so it's hard to tell what the right method would be.Mandatory basic reading on the issue: The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)
您的页面源代码显示您正在使用:
请注意,上述标记的格式不正确。它的结束符“/”在哪里? Content-Type 应位于双引号之间。
将此标记添加到您的页面并测试:
如果这不能解决您的问题,请尝试将字符集标记更改为:
Your page source shows that you're using:
Note that the above tag is not well formed. Where is its closing character "/"? Content-Type should be between double quotes.
Add this tag to your page and test:
If that doesn't solve your problem try to change the charset tag to: