Welcome 微信登录

首页 / 操作系统 / Linux / SSH 连接 Ubuntu 时的中文乱码问题

若使用 Ubuntu 中文系统,其默认将使用 UTF-8 作为字符集:$ locale
LANG=zh_CN.UTF-8
LANGUAGE=zh_CN:zh
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=而通常中文 Windows 系统使用的是 GB2312 或 GB18030,这时从中文 Windows 系统通过诸如 SSH Secure Shell, PuTTY 等工具登陆 Ubuntu 就会发现所有的中文都不能正常显示。如果使用的是 PuTTY,可以通过修改 font, character set 设置来解决。Window -> Appearance -> Font settings 选择宋体或新宋体:Window -> Translation -> Character set translation on received data 选择 UTF-8:原文:http://huang.yunsong.net/2006/ssh_ubuntu_unreadable_code.htmlUbuntu下Wine乱码解决方法与中文支持Ubuntu和Ubuntu精神相关资讯      Ubuntu知识 
  • Ubuntu 有这功能吗?-回答4个新用  (10/14/2014 16:54:49)
  • Ubuntu小知识总结  (07/08/2013 17:02:10)
  • 万圣节Halloween与Ubuntu  (10/31/2012 07:59:01)
  • Ubuntu系统诞生10周年:让Linux更  (10/14/2014 16:53:00)
  • Ubuntu 官方发布 Ubuntu 应用程序  (02/15/2013 21:49:58)
  • Ubuntu内置捐款选项:为掌握用户需  (10/11/2012 13:57:23)
本文评论 查看全部评论 (0)
表情: 姓名: 字数