gpt4 book ai didi

Unicode字符在不同浏览器中显示不同

转载 作者:行者123 更新时间:2023-12-02 12:15:58 25 4
gpt4 key购买 nike

所以...我仍然在unicode hell 中...

新问题...

在我的电脑上,一切都显示得很完美。在所有浏览器中。在同事的计算机上,同样的故事。一切都很好。即使在我的一台 Linux VPS 上的 elinks 和 w3m 中,立陶宛语和拉脱维亚语以及北欧字母的所有异国变音符号也能完美显示。

但是,今天我接到了一些客户的电话,他们收到了常见的 unicode 骗局组合...“à”和另一个字符之类的东西。

对可能出现的问题有什么建议吗?

技术信息:

Classic ASP
All files are stored as UTF-8 incl BOM
All files start with Codepage=65001 page directive
All files set the Content-Type to "text/html; charset=utf-8"

最佳答案

"Ã" and another character and stuff like that.

这是显示为 ISO-8859-1 的 UTF-8 内容的典型情况。

All files set the Content-Type to "text/html; charset=utf-8"

作者:<meta>或通过 Response.AppendHeader() ?您确实需要将其添加为真正的响应 header 。否则,您将依赖于客户端平台默认编码(MSIE)和/或网络浏览器可以做出的最佳猜测(FF)。您可以使用 Firebug 等工具验证响应 header .

关于Unicode字符在不同浏览器中显示不同,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3704196/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com