> ## Content Index
> Fetch the complete content index at: https://www.albert-yu.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# MacOS SecureCRT 亂碼排除
- URL: https://www.albert-yu.com/blog/macos-securecrt-garbled-text-fix/
- Published: 2020-03-31T04:05:41.000Z
- Updated: 2026-10-30T03:43:29.000Z
- Author: Albert Yu
- Tags: System, User, MacOS, SecureCRT, zh_TW, 亂碼

ＭacOS 的 SecureCRT 在中文環境當中連線本機會出現中文亂碼  
排除這方式為在家目錄下新增一個 .zshrc  
 Z shell（Zsh）為10.14版本之後MAC預設的命令直譯器  
我們可以新增.zshrc作為開啟後自動設定的設定黨  
在原生設定當中沒有.zshrc  
可以使用該指令新增該檔案

```
sudo vi ~/.zshrc 
```

![](https://www.albert-yu.com/content/images/2026/10/macos-securecrt-luan-ma-pai-chu-01.png)

在其中新增語系設定 如果安裝系統的時候選擇了中文系統，則把LANG欄位改為：

```
export LC_ALL=zh_TW.UTF-8
export LANG=zh_TW.UTF-8
```

如果安裝系統的時候選擇的英文系統，則把LANG欄位改為：

```
export LC_ALL=zh_US.UTF-8
export LANG=zh_US.UTF-8 
```

![](https://www.albert-yu.com/content/images/2026/10/macos-securecrt-luan-ma-pai-chu-02.png)

新增之後執行

```
source ~/.zshrc 
```

另外在SecureCRT的設定檔中 Terminal -> Appearance -> Character encoding 選擇UTF-8

![](https://www.albert-yu.com/content/images/2026/10/macos-securecrt-luan-ma-pai-chu-03.png)

設定完後重開SecureCRT 之後即可