分页: 1 / 1

[问题]ssh 登录编码问题

发表于 : 2008-05-26 10:03
suncanoe
服务器:debian,编码gb2312
客户端:ubuntu 编码utf

在客户端使用ssh登录服务器时,中文乱码,应该怎么解决?

发表于 : 2008-05-26 10:06
eexpress
☎ type cn
cn 已被别名为“export LC_ALL=zh_CN.UTF-8”

登录后,执行下cn

发表于 : 2008-05-26 10:17
bones7456
gnome-terminal的话,终端-设定字符编码-gbk 就好了

发表于 : 2008-05-26 10:56
eexpress
bones7456 写了:gnome-terminal的话,终端-设定字符编码-gbk 就好了
:?: :?: :?: 我的epc都是utf8啊。 :P :P

发表于 : 2008-05-26 11:21
suncanoe
eexpress 写了:☎ type cn
cn 已被别名为“export LC_ALL=zh_CN.UTF-8”

登录后,执行下cn

ssh登陆后执行export LC_ALL=zh_CN.UTF-8,还是乱码

发表于 : 2008-05-26 11:30
eexpress
服务器:debian,编码gb2312
别照抄哦。你自己改gb18030试试啊。ub系统都不支持gb2312了。那是很旧的编码了。过时了的。

发表于 : 2008-05-26 11:59
suncanoe
eexpress 写了:
服务器:debian,编码gb2312
别照抄哦。你自己改gb18030试试啊。ub系统都不支持gb2312了。那是很旧的编码了。过时了的。
不管用,都是过了

发表于 : 2008-05-26 12:00
suncanoe
bones7456 写了:gnome-terminal的话,终端-设定字符编码-gbk 就好了

经测试,这个可以

:em50

发表于 : 2008-05-26 15:40
eexpress
:em20 :em26
怎么会。哈哈