曹耘豪的博客

Linux 修复中文显示问号问题

参考:https://blog.csdn.net/wo18237095579/article/details/84139673

1
2
3
$ vim /etc/locale.conf

LANG="zh_CN.UTF-8"
1
2
3
4
5
6
$ vim ~/.bashrc

# 追加
export LANG='UTF-8'
export LC_ALL='zh_CN.UTF-8'
export LC_CTYPE='zh_CN.UTF-8'
1
source ~/.bashrc
   /