Debian 12 解决乱码问题

1.安装中文包

apt install -y locales locales-all

2.配置本地化设置

dpkg-reconfigure locales

勾选 中文

apt install -y fonts-wqy-zenhei fonts-wqy-microhei xfonts-wqy

reboot

如果还是不行

nano /etc/default/locale

## 写入下面的内容
LANG=zh_CN.UTF-8
LC_ALL=zh_CN.UTF-8
LC_CTYPE=zh_CN.UTF-8

 

posted @ 2025-09-11 18:48  最大上升空间  阅读(141)  评论(0)    收藏  举报