4

I want to insert the unicode character Thorn Þ into my document.

http://www.fileformat.info/info/unicode/char/00de/index.htm

The character seems to be inserted when I type

i<C-v>u00DE<esc>

But is displayed as the replacement character:

http://www.fileformat.info/info/unicode/char/fffd/index.htm

I assume this is because there is no glyph that vim can map to the unicode character. I am not sure how to proceed to update vim to get that character displayed correctly.

Note: This is different from the question marked as duplicate in that I already insert the correct unicode character. The problem is that it is not displayed correctly.

Martin York
  • 6,542
  • 4
  • 20
  • 26

1 Answers1

3

The answer was posted in the comments by @DJ McMayhem.

:set enc?
latin-1

So by changing it to utf-8 the text becomes readable.

:set enc=utf-8
Martin York
  • 6,542
  • 4
  • 20
  • 26