putty登录CentOS中文乱码的解决方法

时间:2014-03-06 11:11:01 魔新豆网
1. 在CentOS上设置 /etc/sysconfig/i18n为如下内容

  

  复制代码

代码如下:

  LANG="zh_CN.UTF-8"


2. 在putty的PuTTY Configuration窗口中设置如下:

  

  复制代码

代码如下:

  1. Window->Appearance->font setting
设置字体为:新宋体,10号

2. Window->Translation->Remote character set
设置值为:UTF-8


这样设置后的putty通过SSH连接到CentOS上,中文字符正常显示,不再出现中文乱码。
本文标签: