OS X Terminal UTF-8 issues

后端 未结 11 2241
忘了有多久
忘了有多久 2020-11-27 14:56

Okay, so I finally got myself a MacBook Air after 15 years of linux. And before I got it my big concern was UTF-8 support because no matter if I get files sent to me from wi

11条回答
  •  独厮守ぢ
    2020-11-27 15:26

    Short versatile answer (fits to other national languages, even Lithuanian or Russian)

    • open Terminal
    • edit .profile in home directory - nano .profile or in Catalina or newer nano .zshenv
    • add line export LC_ALL=en_US.UTF-8
    • press Ctrl+x and Y (exit and save)

    This solved for me even small country rare national characters. You may need to close and open Terminal to make changes effective.

    Also if you like Linux behavior (use lot of Alt shortcuts like Alt+. or Alt+, in mc) then you should disable Mac style Option key function: Terminal->Preferences->Profiles->Keyboard and check box: Use Option as Meta key

提交回复
热议问题