1.檢查是否有支援中文語系
less /usr/share/i18n/SUPPORTED | grep zh_TW
2.修改預設的語系全域設定
sudo vi /etc/default/locale
改成
sudo vi /etc/default/locale
改成
LANG=zh_TW.UTF-8
LANGUAGE=zh_TW.UTF-8
LC_ALL=zh_TW.UTF-8
LANGUAGE=zh_TW.UTF-8
LC_ALL=zh_TW.UTF-8
3.輸入以下的指令,將locale套件管理程式選定預設的語系改為zh_TW.UTF-8 UTF-8,並將zh_TW.Big5及en_US.UTF-8取消
sudo dpkg-reconfigure locales
4.登出後再登入,修改的設定就會生效
如此一來,利用遠端連線軟體登入,就可以正常顯示中文
您好,想請教大大一下,下sudo dpkg-reconfigure locales 之後都會出現 以下的警告訊息, 不曉得
回覆刪除sudo dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LC_TIME = "zh_TW.UTF-8",
LANG = "C.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("C.UTF-8").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
不曉得是不是哪邊出現問題....