LiFe CycLe

it works, it obsoletes!

2007年6月20日 星期三

在mac中 讓終端機顯示中文

之前已經有一篇介紹如何設定讓終端機顯示中文的
但是這篇是針對之前apple support裡的文章做一點小翻譯
這裡是原文
Mac OS X 10.2: How to Use High-Bit Characters in Terminal

The default configuration of Terminal does not allow you to drag items named with high-bit characters to the command line, or type high-bit characters there. High-bit characters include accented and special characters used in many languages. You may reconfigure Terminal to allow high-bit characters.

原本的終端機設定不允許使用者在終端機中讀取或使用多位元的資料。多位元的字串或資料用在許多的語言上。你可以透過更改終端機的設定,使得終端機可以讀到正確的多位元字串

Symptom
特點

You cannot type high-bit characters at the command line or drag items named with them into the Terminal window.
你不能在命令列輸入多位元字串或是無法讀取多位元字串在終端機中。

Products affected
  • Mac OS X 10.2
  • Terminal

Solution
    1. Open Terminal.
    打開你的終端機
    2. Choose Windows Settings from the Terminal menu. The Terminal Inspector window appears.
    在終端機的選單中選擇視窗設定。出現終端機的監視選單
    3. Choose Emulation from the pop-up menu.
    4. Make sure the checkbox for "Use option key as meta key" is not selected.
    確認"use option key as meta key" 這個選項沒有被選取
    5. Select the checkbox for "Escape 8-bit chars with Ctrl-V".
    選取"Escape 8-bit chars with Ctrl-V"選項
    6. Choose Display from the pop-up menu.
    7. If necessary, choose Unicode (UTF-8) from the Character Set Encoding pop-up menu.

Note: If you are using tcsh or bash, make sure that "Escape 8 bit characters with Ctrl-V" is selected in the Emulation pane of the Terminal Inspector. If you are using zsh, make sure that "Escape 8 bit characters with Ctrl-V" is not selected. You can then drag/type names of folders with high-bit characters correctly. (tcsh/bash will show the escaped form of the character; zsh will show the actual character.)
注意:
如果你是使用tcsh 或是 bash 那"Escape 8 bit characters with Ctrl-V"選項就必須選取,但是如果你是使用zsh,那就不要選取"Escape 8 bit characters with Ctrl-V"選項。

標籤: ,