目录

Linux解决nano中文乱码

发表于
更新于
835 696

方法一

dpkg-reconfigure locales

用空格键选中en-us utf-8和zh_CN.UTF-8

方法二
编辑~/.bashrc或者/etc/profile,在其末尾加入:

export LANG="zh_CN.UTF-8"
export LC_CTYPE="zh_CN.UTF-8"

保存后运行source ~/.bashrc或者source /etc/profile,问题解决