如何让putty支持中文

[email protected]

由于putty是老外开发的,对于中文支持不太友好,在缺省情况下,putty不能正常显示汉字,可以通过如下方式让putty显示汉字(无论在shell状态还是在vi/vim环境中)

1) 将putty字体设置为Fixedsys,并将字符集设置为CHINESE_GB2312。操作方式如下: 打开putty主程序,选择window-〉Appearance-〉Font settings-〉Change...,选择Fixedsys字体,字符集选择CHINESE_GB2312。

2) 将传输过程中的字符设置为UTF-8. 在Window->Appearance->Translation中,Received data assumed to be in which character set 中,把Use font encoding改为UTF-8.
3) 登录putty,在shell中输入: export LC_ALL='zh_CN.utf8',将本地语言设置为utf-8支持

猜你喜欢

转载自langiner.iteye.com/blog/762843