服务器:debian,编码gb2312
客户端:ubuntu 编码utf
在客户端使用ssh登录服务器时,中文乱码,应该怎么解决?
[问题]ssh 登录编码问题
- suncanoe
- 帖子: 476
- 注册时间: 2005-12-07 0:17
- 来自: 昆明
[问题]ssh 登录编码问题
Two wrongs do not make a right.
blog: http://hi.baidu.com/bookpage
blog: http://hi.baidu.com/bookpage
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
- bones7456
- 帖子: 8495
- 注册时间: 2006-04-12 20:05
- 来自: 杭州
- 联系:
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
- suncanoe
- 帖子: 476
- 注册时间: 2005-12-07 0:17
- 来自: 昆明
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
blog: http://hi.baidu.com/bookpage
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
- suncanoe
- 帖子: 476
- 注册时间: 2005-12-07 0:17
- 来自: 昆明
不管用,都是过了eexpress 写了:别照抄哦。你自己改gb18030试试啊。ub系统都不支持gb2312了。那是很旧的编码了。过时了的。服务器:debian,编码gb2312
Two wrongs do not make a right.
blog: http://hi.baidu.com/bookpage
blog: http://hi.baidu.com/bookpage
- suncanoe
- 帖子: 476
- 注册时间: 2005-12-07 0:17
- 来自: 昆明
bones7456 写了:gnome-terminal的话,终端-设定字符编码-gbk 就好了
经测试,这个可以
Two wrongs do not make a right.
blog: http://hi.baidu.com/bookpage
blog: http://hi.baidu.com/bookpage