Can not input or print Chinese on PuTTY
- by hetaoblog
On Red Hat Enterprise Linux AS release 3,
I've set my environment variable as below
$ echo $LANG
zh_CN.UTF-8
$ echo $LANGUAGE
zh_CN.UTF-8
$ echo $SUPPORTED
en_US.UTF-8:en_US:en:zh_CN.UTF-8
$ 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=zh_CN.UTF-8
Meanwhile I've set PuTTY's transmission encoding as utf-8 and appearance-font setting to have a font as 'Fixedsys' which does support chinese.
However, when I try to print a file with Chinese, it can not print it correctly
$ cat 1.txt
hello¦¦¦ $
and I can not input Chinese correctly on shell.