[问题]ssh 登录编码问题

上网、浏览、聊天、下载等
回复
头像
suncanoe
帖子: 476
注册时间: 2005-12-07 0:17
来自: 昆明

[问题]ssh 登录编码问题

#1

帖子 suncanoe » 2008-05-26 10:03

服务器:debian,编码gb2312
客户端:ubuntu 编码utf

在客户端使用ssh登录服务器时,中文乱码,应该怎么解决?
Two wrongs do not make a right.
blog: http://hi.baidu.com/bookpage
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#2

帖子 eexpress » 2008-05-26 10:06

☎ type cn
cn 已被别名为“export LC_ALL=zh_CN.UTF-8”

登录后,执行下cn
● 鸣学
头像
bones7456
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
联系:

#3

帖子 bones7456 » 2008-05-26 10:17

gnome-terminal的话,终端-设定字符编码-gbk 就好了
关注我的blog: ε==3
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#4

帖子 eexpress » 2008-05-26 10:56

bones7456 写了:gnome-terminal的话,终端-设定字符编码-gbk 就好了
:?: :?: :?: 我的epc都是utf8啊。 :P :P
● 鸣学
头像
suncanoe
帖子: 476
注册时间: 2005-12-07 0:17
来自: 昆明

#5

帖子 suncanoe » 2008-05-26 11:21

eexpress 写了:☎ type cn
cn 已被别名为“export LC_ALL=zh_CN.UTF-8”

登录后,执行下cn

ssh登陆后执行export LC_ALL=zh_CN.UTF-8,还是乱码
Two wrongs do not make a right.
blog: http://hi.baidu.com/bookpage
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#6

帖子 eexpress » 2008-05-26 11:30

服务器:debian,编码gb2312
别照抄哦。你自己改gb18030试试啊。ub系统都不支持gb2312了。那是很旧的编码了。过时了的。
● 鸣学
头像
suncanoe
帖子: 476
注册时间: 2005-12-07 0:17
来自: 昆明

#7

帖子 suncanoe » 2008-05-26 11:59

eexpress 写了:
服务器:debian,编码gb2312
别照抄哦。你自己改gb18030试试啊。ub系统都不支持gb2312了。那是很旧的编码了。过时了的。
不管用,都是过了
Two wrongs do not make a right.
blog: http://hi.baidu.com/bookpage
头像
suncanoe
帖子: 476
注册时间: 2005-12-07 0:17
来自: 昆明

#8

帖子 suncanoe » 2008-05-26 12:00

bones7456 写了:gnome-terminal的话,终端-设定字符编码-gbk 就好了

经测试,这个可以

:em50
Two wrongs do not make a right.
blog: http://hi.baidu.com/bookpage
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#9

帖子 eexpress » 2008-05-26 15:40

:em20 :em26
怎么会。哈哈
● 鸣学
回复