解决centos7在SecureCRT中文乱码的问题

解决Centos7中使用CRT链接的时候中文字符乱码的问题:

思路一、

文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/environment/config-lc-all-locale/

思路二、

由于日志或者其他文件在存储过程中,可能一些意外的bug导致文件内容为二进制或者其他特殊字符导致的乱码 文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/environment/config-lc-all-locale/

解决方法:文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/environment/config-lc-all-locale/

# 一般适用于从win拷贝到linux系统,因为linux系统和win对回车、空格等不一致导致的一般可以这样解决,从linux到win可以使用命令unix2dos


# 使用crt或者xshell等工具乱码,可能的原因就是工具本身的字符集和系统的字符集不一致导致的,可以用思路一的方式排查

# 日志存储过程中异常导致的问题文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/environment/config-lc-all-locale/

报错可能是类似于:Binary symbol 0x01 found at line 1,这样的乱码一般可以对文件进行切割,删除掉错误的行进行修复。 文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/environment/config-lc-all-locale/

类似文档:https://note.t4x.org/system/linux-i18n-config/文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/environment/config-lc-all-locale/

申明:本文由BYRD原创,谢绝转载!文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/environment/config-lc-all-locale/ 文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/environment/config-lc-all-locale/

申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!

 
Byrd
  • by Published onMarch 4, 2016
  • 原文链接:https://note.t4x.org/environment/config-lc-all-locale/
Comments  2  Visitor  2
    • 美剧天堂 1

      xshell乱码也可以这样解决吗

        • Byrd
          Byrd

          @ 美剧天堂 xshell乱码,应该是编码问题,你选择本地为utf-8一般就可以。(一般系统和工具编码一致应该问题不大。)

      匿名

      Comment

      Anonymous

      Slide puzzle verification.