為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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.