FF 上的 UTF-8 无法显示法语口音
在我的FF浏览器上,编码设置为UTF-8。法语口音在除一页之外的所有页面上均正确显示。在故障页面上,它们显示为“?”标记。当我将编码更改为西方时,问题页面会正确显示法语口音,而其他页面现在无法正确显示法语口音。
在 IE 上,设置为 UTF-8 并且所有页面都显示正确的法语口音
On my FF browser, the encoding is set to UTF-8. The french accents are displayed properly on all pages except one page. On the trouble page, they show up as '?' marks. When I change the encoding to western, the trouble page displays french accents properly, while the other pages now do not display french accents properly.
On IE, the setting is UTF-8 and all pages show proper french accents
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我知道这是一个旧帖子。但是,我遇到了同样的问题,我在 php 中使用了 htmlentities() ,但没有其他解决办法。这解决了我的目的,所以想在这里提及它,以便其他人可以从中受益。
I know it's an old post. But, I was facing the same issue and I used htmlentities() in php, when nothing else worked out. This solved the purpose for me, so thought of mentioning it here so that someone else can benefit from it.
网页是什么?
页面本身的编码很可能是 ISO 8859-1 或类似的编码(纯 8 位编码)。有些网页不会在
Content-Type:
标头中指定自己的编码,而是让浏览器自行猜测。显然,在这种情况下,Internet Explorer 的猜测比 Firefox 更好。如果您有
curl
命令,请尝试curl --head URL
查看如何以及是否指定编码,或者右键单击并查看页面信息 在 Firefox 中。
您可以考虑联系网页的所有者并要求他们正确设置编码(或者像我一样,忽略它)。
What's the web page?
Most likely the page's own encoding is ISO 8859-1 or something similar (a pure 8-bit encoding). Some web pages don't bother to specify their own encoding in the
Content-Type:
header, leaving the browser to guess. Apparently in this case Internet Explorer guesses better than Firefox.If you have the
curl
command, trycurl --head URL
to see how and whether the encoding is specified, or right-click andView Page Info
in Firefox.You might consider contacting the owner of the web page and asking them to set the encoding properly (or, as I'd do, just ignore it).