Author:
15 Sep 2006
用 putty 从 windows xp 连接 ubuntu server 中文部分乱码,老是要猜报错信息是什么,郁闷。
在 Change Settings - window - appearance -font settings 选择宋体(或者其它中文字体),字符集CHINESE_GB2312。在 window - appearance - translation,设置为 Use font encoding。
下面是我看到的资料,不太一样,在我这里不行。
以下为引用内容:
putty的中文支持还是很好的,呵呵打开putty主程序,选择window-〉Appearance-〉Font settings-〉Change…,选择Fixedsys字体,字符集选择CHINESE_GB2312。在window-〉Appearance-〉 Translation中,Received data assumed to be in which character set 中,把Use font encoding改为UTF-8如果经常使用,把这些设置保存在session里面. 现在打开putty,登录成功后,在shell中输入:export LC_ALL=’zh_CN.utf8′,这样应该可以的
还见到一种说法。没有试验,我不想回到gb码,:)
以下为引用内容:编辑/etc/sysconfig/i18n 将第1句“LANG=”zh_CN.UTF-8″”改为“LANG=”zh_CN.GB18030″”,完成后保存重新登录就可以显示正常了