TransWikia.com

Can not input or print Chinese on PuTTY

Server Fault Asked by hetaoblog on December 20, 2021

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.

One Answer

If you're using screen you must start it with the -U option in order to have utf8 support.

It seems like defutf8 on in your .screenrc should do this for you, but it won't.

Answered by DerfK on December 20, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP