Ubuntu中文显示为乱码

1.安装相关的中文支持包

sudo apt-get install language-pack-zh-hant language-pack-zh-hans

2.执行指令

locale-gen

3.修改/etc/profile文件添加如下指令

export LANG=zh_CN.UTF-8

4.执行命令

source /etc/profile

5.查看locale



猜你喜欢

转载自blog.csdn.net/liuyunshengsir/article/details/80454446