在SSH终端上显示中文字符

[不指定 2008/06/03 21:16 | by Franky ]
| |
在SSH终端上显示中文字符

■■方法1■■

在/etc/bashrc中加入export LC_ALL=en_US.UTF-8
如此,shell的语言是英文,但是可以显示中文字符。

■■方法2■■

在/etc/bashrc中加入export LC_ALL=en_US.UTF-8
如此,shell的语言是中文,也可以显示中文字符。

■■方法3■■

编辑/etc/sysconfig/i18n,修改为如下内容:

LANG="en_US"
SUPPORTED="en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"

这样设置,操作系统语言是英文,但是将可以显示中文字符。
Linux系统 | 评论(0) | 引用(0) | 阅读(231)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]