When trying to input danish characters æøå into vim, I suddenly get "æ ø å " and then the questionmark blocks on reopening. The same goes for files saved in other editors and reopened in vim. I have set my encoding to utf-8 in my vimrc, and experience no issues in other editors. Are there other encoding options I should be aware of than

:set encoding

?

link|improve this question
What fileencoding is being set when you open the file? – grawity Apr 28 '11 at 16:13
feedback

1 Answer

You may have to enable detection for UTF-8 by setting fileencodings:

set fileencodings=ucs-bom,utf-8,cp1257,latin1

(note: fileencoding is current, fileencodings is list of encodings to try.)

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.