Xshell中文乱码怎么处理?

1 通过xshell登录oracleserver,发现中文乱码例如以下: 
-rw-r--r-- 1 oracle oinstall 16886 3?

. 16 03:18 rman_backup.log
[root@localhost 2014-03-16]# cd 2014-03-19
-bash: cd: 2014-03-19: 娌℃.?d釜?

.欢?..褰   #这里乱码了
[root@localhost 2014-03-16]# ll
?荤.?.20
-rw-r--r-- 1 oracle oinstall 16886 3?. 16 03:18 rman_backup.log

2 原本以为像曾经的SecureCRT一样,能够直接在tool里面能够解决掉。结果打开一看。没有发现能够设置字符集的地方,例如以下图所看到的:





3 看来去登录的时候看下。在file-->open-->选中server列表一个。右键点击-->Properties-->Terminal-->Enconding,之后选中下拉框的Unicode(UTF-8)。



4 之后点击OKbutton,退出,又一次登录连接,查看显示信息:
[root@localhost ~]# cd /data/oracle/backup/data/2014-03-16
[root@localhost 2014-03-16]# ll
总用量 20
-rw-r--r-- 1 oracle oinstall 16886 3月  16 03:18 rman_backup.log
[root@localhost 2014-03-16]# 

5 OK。中文显示正常了。

原文地址:https://www.cnblogs.com/mengfanrong/p/5363150.html