Created
January 11, 2025 10:11
-
-
Save CN-CODEGOD/1c3da46346d3c4f89245db8bf6a9f358 to your computer and use it in GitHub Desktop.
解决 Ubuntu Firefox 中文乱码
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 尝试用浏览器打开, | |
| 在文字编码 或者 Text Encoding 中, | |
| 更换编码格式不能选择,除了Unicode选中,其他都无法点击。 | |
| 解决方案(从网上获取): | |
| 第一种方式 | |
| 1.安装wqy-zenhei字体 | |
| apt-get install ttf-wqy-zenhei | |
| 2.修改系统字体配置文件/etc/fonts/conf.d/49-sansserif.conf | |
| 打开/etc/fonts/conf.d/49-sansserif.conf这个文件: | |
| vim /etc/fonts/conf.d/49-sansserif.conf | |
| 然后修改倒数第四行的字体为WenQuanYi Zen Hei,如下: | |
| <?xml version="1.0"?> | |
| <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
| <fontconfig> | |
| <!-- | |
| If the font still has no generic name, add sans-serif | |
| --> | |
| <match target="pattern"> | |
| <test qual="all" name="family" compare="not_eq"> | |
| <string>sans-serif</string> | |
| </test> | |
| <test qual="all" name="family" compare="not_eq"> | |
| <string>serif</string> | |
| </test> | |
| <test qual="all" name="family" compare="not_eq"> | |
| <string>monospace</string> | |
| </test> | |
| <edit name="family" mode="append_last"> | |
| <string>WenQuanYi Zen Hei</string> | |
| </edit> | |
| </match> | |
| </fontconfig> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment