ID:800133  

在Linux debian11下浏览器显示字符乱码的情况处理

[乱码] [字符集] [浏览器]

1970年01月01日   113


直接命令行下可安装

## 先查看现有字体
fc-list :lang=zh
## 安装新字体
apt update
apt install fonts-wqy-zenhei fonts-wqy-microhei fonts-arphic-ukai fonts-arphic-uming
apt install xfonts-intl-chinese wqy* 
 
## Arch wiki 中建议的字体
adobe-source-han-sans-cn-fonts
adobe-source-han-serif-cn-fonts
noto-fonts-cjk
wqy-microhei
wqy-microhei-lite
wqy-bitmapfont
wqy-zenhei
ttf-arphic-ukai
ttf-arphic-uming

相当于这样安装
apt install xfonts-intl-chinese wqy* adobe-source-han-sans-cn-fonts adobe-source-han-serif-cn-fonts noto-fonts-cjk ttf-arphic-ukai ttf-arphic-uming

出现这样的E:Couldn't find any package by glob,不用管他,可能没有对应的安装包