Vim show strange  characters over putty

柔情痞子 提交于 2019-12-03 04:14:35

问题


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


来源:https://stackoverflow.com/questions/5027403/vim-show-strange-%c3%82-characters-over-putty

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!