Guido Van Hoecke wrote:
[...]
However, when I open man output with vim or gvim, the rightmost quote
displays as a plain single quote (hex 27), the leftmost quote displays
as three characters, 'â' '<80>' and '<98>'. A word-splitting hyphen in
the rightmost column of lines is displayed as three characters: 'â'
'<80>' and '-' Apparently, Manpageviewer also reads this like that.
[...]
It looks like Vim does not recognise the file as being in UTF-8.
Add to your vimrc (you can use cut-and-paste):
" enable Unicode support if possible
if has('multi_byte')
if &encoding !~? '^u'
if &termencoding == ''
let &termencoding = &encoding
endif
set encoding=utf-8
endif
set fencs-=ucs-bom
set fencs-=utf-8
set fencs^=ucs-bom,utf-8
else
echoerr 'Error: Multi-byte support not compiled-in'
endif
This ought to fix it. If you get the error message, it means you need a
different binary, with +multi_byte (or +multi_byte_ime) compiled-in.
Best regards,
Tony.