Linux命令行乱码问题

当前linux为Cent OS 6.3 64bit

 

/etc/sysconfig/i18n内容为:

LANG="en_US.UTF-8"
SYSFONT="latarcyrheb-sun16"

 

执行locale命令显示:

LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=

 

Mac终端默认使用字符编码:Unicode(UTF-8)

1. svn up提示符正确显示中文

2. cat test.txt 正确显示中文

3. vim test.txt 正确显示和编辑中文

 

你可能感兴趣的:(linux命令)