Dec 24, 2007

Putty 显示/输入中文

1. 先查看Linux下的locale是否设置为中文

终端执行:locale

如显示 LANG=zh_CN.UTF-8 等信息则是设置为中文,如果显示其他信息就要先修改locale了。

编辑/etc/sysconfig/i18n,

将LANG=en_US.UTF-8 改为 LANG=zh_CN.UTF-8

SUPPORT=en_US.UTF-8….也作类似改动,

然后执行:

#. /etc/sysconfig/i18n


2. Putty 设置:

Window --> Appearance --> Font settings 设为 Fixedsys

Translation --> Received data assumed to be in which character set 设为
UTF-8
并在 Treat CJK ambiguous characters as wide 前打上勾


3. Vim 设置:

[root@slackware ~]# cat .vimrc
set encoding=utf-8
set fileencoding=chinese
set fileencodings=ucs-bom,utf-8,chinese
set ambiwidth=double

No comments:

Post a Comment

您的评论将使我blog更有动力~