سؤال

When I'm using Vim or Nano in Mac OS X Lion, the Swedish characters "ÅÄÖ" show up as "åäö". It works fine in Terminal.

I've added this line to my .vimrc:

set encoding=utf8

If I run locale in Terminal it shows:

LANG="sv_SE.UTF-8"
LC_COLLATE="sv_SE.UTF-8"
LC_CTYPE="sv_SE.UTF-8"
LC_MESSAGES="sv_SE.UTF-8"
LC_MONETARY="sv_SE.UTF-8"
LC_NUMERIC="sv_SE.UTF-8"
LC_TIME="sv_SE.UTF-8"
LC_ALL=

Any ideas?

هل كانت مفيدة؟

المحلول

I found the solution here: see thread

"The solution was to uncheck the "Escape non-ASCII input" checkbox in the Advanced tab of the Terminal.app settings."

Thanks Idigas and progo for your time!

نصائح أخرى

Could be your termencoding needs to be set properly.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top