Vim show strange  characters over putty

2019-03-09 01:54发布

问题:

When I am editing a file in Vim I have some lines with a bunch of  displayed.

I have already checked the encoding with

:set encoding

It says utf8

encoding=utf8

Anybody knows where this is comming from and how to stop this behaviour?

Regards,

Jeremy

回答1:

Make sure that PuTTY is set for UTF-8 as well. You can do this under Window -> Translation -> Remote Character Set. You may need to choose a font that supports a reasonable portion of the Unicode range as well -- Terminal isn't necessarily going to cut it.



回答2:

Does it appear when you type the British Pound symbol? Try changing your encoding:

:set encoding=latin1