Html utf-8 字符不显示在 chrome 中

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16658463/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 08:36:14  来源:igfitidea点击:

utf-8 characters not displaying in chrome

htmlgoogle-chrometwitter-bootstraputf-8

提问by TEN Design

Having an issue with html special characters not displaying correctly in chrome see

在 chrome 中无法正确显示 html 特殊字符的问题请参见

Example Page

示例页面

I have gone through and resaved every file in the project as utf-8 confirmed my meta tag deceleration and confirmed that chrome is set to default to utf-8. No issues in firefox or ie. Any help would be greatly appreciated. Im pulling my hair out.

我已经检查并重新保存了项目中的每个文件,因为 utf-8 确认了我的元标记减速并确认 chrome 被设置为默认为 utf-8。在 Firefox 或 ie 中没有问题。任何帮助将不胜感激。我把头发拉出来。

回答by Danack

How about setting the page to be UTF-8?

将页面设置为UTF-8怎么样?

It's currently:

目前是:

Content-Type:text/html;charset=ISO-8859-1

Which if you're using Apache: How to change the default encoding to UTF-8 for Apache?

如果您使用的是 Apache:如何将Apache的默认编码更改为 UTF-8?

回答by Pingan Yi

Set browser default encoding to UTF-8:

将浏览器默认编码设置为 UTF-8:

go to Settings->Show advanced settings->Customize fonts, set Encoding to Unicode(UTF-8)

转到设置->显示高级设置->自定义字体,将编码设置为Unicode(UTF-8)

Tested at chrome Version 42.0.2311.90 (64-bit)

在 chrome 版本 42.0.2311.90(64 位)上测试

回答by Andrew Zick

As of mid-2017, it appears Chrome has removed the manual encoding menu, you now need to download a Chrome extension to manually change it.

截至 2017 年年中,Chrome 似乎已删除手动编码菜单,您现在需要下载 Chrome 扩展程序来手动更改它。

See this post: https://superuser.com/questions/1160003/how-do-i-change-the-character-encoding-for-a-webpage-in-chrome

看到这个帖子:https: //superuser.com/questions/1160003/how-do-i-change-the-character-encoding-for-a-webpage-in-chrome