SSH Secure Shell Client中文乱码的解决方法
2013-06-20 10:42
489 查看
Windows使用的是GB2312编码,大多数linux系统支持的是UTF-8编码,而远程登陆时使用的是本地编码,所以会出现乱码的问题;现有几种解决方案:
方案一:修改linux服务器的环境变量
使用linux,在用户根目录下有一个.bash_profile配置文件,该配置只对当前用户有效.若对所有的用户有效,修改/etc/profile文件
使用ls -a命令可以查看到该文件.使用vi编辑器打开该文件后,在其中加入
LANG=zh_CN.GB2312 export LANG 即可正常显示中文.更改.bash_profile配置文件后,该文件内容如下: # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin LANG=zh_CN.GB2312 export PATH
export LANG
unset USERNAME
方案二:或使用其他远程登陆软件,并修改配置,将字符编码设置为UTF-8。
PS:远程登陆软件 命令行界面putty,Cterm,SecureCRT,含FTP功能的有Filezilla,Secure Shell Client,图形界面的有Xming,XShell,Xmanager等
下面以Putty和SecureCRT为例。
修改SecureCRT设置:选项(Options)->会话选项(Session Options)->外观(Appearance)->字符(Character),选择UTF-8。
putty选择配置窗口左边的Windows—— Translation,在右边的 Received data assumed to be in which character set 下拉列表中选择“UTF-8”
相关文章推荐
- SSH Secure Shell Client 中文乱码解决方法
- SSH Secure Shell Client中文乱码的解决方法
- SSH Secure Shell Client中文乱码的解决方法
- SSH Secure Shell Client中文乱码的解决方法
- 解决SSH Secure Shell Client显示中文乱码 方法
- SSH Secure Shell Client中文乱码的解决方法
- SSH Secure Shell Client中文乱码的解决方法
- SSH Secure Shell Client、SecureCRT中文乱码的解决方法
- SSH Secure Shell Client中文乱码的解决方法
- SSH Secure Shell Client中文乱码的解决方法
- SSH Secure Shell Client中文乱码的解决方法
- SSH Secure Shell Client中文乱码的解决方法
- SSH Secure Shell Client中文乱码的解决方法
- SSH Secure Shell Client中文乱码的解决方法
- SSH Secure Shell Client中文乱码的解决方法
- SSH Secure Shell Client中文乱码的解决办法
- SSH Secure Shell Client中文乱码的解决办法
- SSH Secure Shell Client中文乱码的解决办法
- SSH Secure Shell Client中文乱码的解决办法
- (转载)SSH Secure Shell Client及PuTTY中文乱码问题、语法高亮变下划线问题解决