日期:2014-05-16  浏览次数:20746 次

linux字符集添加和设置

?

添加指令:

locale-gen zh_CN.UTF-8

?

更新字符集:

sudo locale-gen

?

设置当前用户编码:

export LANG=zh_CN.UTF-8

?

设置系统编码:

在/etc/profile末尾添加一行

export LANG=zh_CN.UTF-8