Vim show strange  characters over putty

2019-03-09 01:39发布

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

2条回答
Root(大扎)
2楼-- · 2019-03-09 01:57

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.

查看更多
放我归山
3楼-- · 2019-03-09 02:04

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

:set encoding=latin1
查看更多
登录 后发表回答