linux 修改用户字符集

在环境变量文件.bash_profile添加如下代码:

export LC_ALL="zh_CN.GBK"
export LANG="zh_CN.GBK"

保存文件后,使用命令:source .bash_profile或者. .bash_profile生效环境变量

原文地址:https://www.cnblogs.com/stupid-vincent/p/8261010.html