Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> Linux 教學

解決 SecureCRT 連線 Linux 中文亂碼問題完整步驟

編輯:Linux 教學

問題場景

Windows 7 使用 SecureCRT 連線 Red Hat Enterprise Linux 5,中文顯示亂碼。

雙邊編碼一致性原則

Linux 端與 SecureCRT 端必須採用**相同字元編碼**,現代預設為 UTF-8。

Linux 端設定

# vi /etc/sysconfig/i18n
LANG="zh_CN.UTF-8"
# 或
LANG="en_US.UTF-8"

修改後重新登入或重開機生效。

SecureCRT 端設定

  1. 選單 Options → Session Options → Appearance。
  2. Character encoding 選 UTF-8。
  3. Font 選擇支援中文的字型(如 Microsoft JhengHei、Consolas + 中文備援)。

驗證

Linux 2.6 核心 SSH 預設編碼即為 UTF-8,雙邊設定一致後即可正常顯示中文。

圖示參考

SecureCRT 字元編碼設定 SecureCRT 字型設定

Copyright © Windows教程網 All Rights Reserved