为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Korean could not be displayed properly without "lang=KO" attribute

  • 4 个回答
  • 1 人有此问题
  • 7 次查看
  • 最后回复者为 lamons.n

more options

Just noticed all Korean characters could not be displayed properly in my Firefox (macOS 11.4 + FireFox 89.0.2 (64-bit)) and totally unreadable. The language setting of my browser is English (United Kingdom), I have tried to switch the language but couldn't make difference. All font settings remain default. If I manually add "lang=KO" attribute in the text's container elemnts in developer tool, the Korean will be displayed correctly, but I don't know how to solve this by tweaking settings.

Just noticed all Korean characters could not be displayed properly in my Firefox (macOS 11.4 + FireFox 89.0.2 (64-bit)) and totally unreadable. The language setting of my browser is English (United Kingdom), I have tried to switch the language but couldn't make difference. All font settings remain default. If I manually add "lang=KO" attribute in the text's container elemnts in developer tool, the Korean will be displayed correctly, but I don't know how to solve this by tweaking settings.
已附加屏幕截图

所有回复 (4)

more options

No problems here with that webpage.

It use Unicode (utf-8) and there shouldn't be a problem.

It looks that in your case there is a problem with the font that is used.

You can compare the actual font that is used in both cases.

You can right-click and select "Inspect Element" to open the builtin Inspector with this element selected.

You can check in the Rules tab in the right panel in the Inspector what font-family is used for selected text. You can check in the Font tab in the right panel in the Inspector what font is actually used because Firefox might be using a different font than specified by the website.

more options

cor-el said

You can check in the Rules tab in the right panel in the Inspector what font-family is used for selected text. You can check in the Font tab in the right panel in the Inspector what font is actually used because Firefox might be using a different font than specified by the website.

Hi cor-el, thanks for your help!

I have checked the actually font that used for Korean characters in this page in my case, it is Heiti SC (the related CSS selector is just "sans-serif"), which is a Chinese font that clearly shouldn't be used for this. I have checked other webpages with Korean and it seems have the same issue.

However, Heiti SC is not configered as default Korean font, or Chinese font in my browser (all font settings are remain default), so I still can't figure out why this font is used to diplay Korean.

more options

Some prefs that you can try to modify on the about:config page.

layout.css.font-visibility.level = 3 Visibility level of font families available to CSS font-matching:

1 - only base system fonts
2 - also fonts from optional language packs
3 - also user-installed fonts

layout.css.font-variations.enabled = true


more options

The "layout.css.font-variations.enabled" has been "true" already. I have changed the "layout.css.font-visibility.level" to 1 but same issue still occure, I believe Heiti SC is an font that came with the system.