---
title: "putty 中文乱码解决方法 "
author: "wjm901215"
date: "2012-11-05T10:10:07Z"
tags: []
categories: ["非技术"]
slug: "putty"
draft: false
lastmod: "2012-11-05T10:10:07Z"
id: 1716467
url: "https://wangjunma.iteye.com/blog/1716467"
---

方法一:

打开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'

方法二:  
编辑/etc/sysconfig/i18n  
将第1句“LANG="zh\_CN.UTF-8"”改为“LANG="zh\_CN.GB18030"”，完成后保存重新登录就可以显示正常了