天天看點

Mac terminal中的中文亂碼(原創)

新買的mac,打開terminal,定位到某目錄,ls時是亂碼。

這時候,

cd ~
touch .bash_profile
vi .bash_profile


           

然後在新檔案中加入:

export LC_ALL=en_US.UTF-8  
export LANG=en_US.UTF-8
           

儲存退出,然後再

source   ~/.bash_profile

繼續閱讀