SublimeText keeps inserting \xc2 characters

时间秒杀一切 提交于 2020-01-02 03:13:07

问题


I use SublimeText for writing Python. Every so often it will insert characters that I didn't type. Today's example:

Non-ASCII character '\xc2' in file /path/to/my/project/forms.py on line 256, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details (forms.py, line 256)

This doesn't happen to my colleagues and happens to me from time to time. I'm not sure what to do about it. I can delete the line and re-type it and it's fine. I have tried updating versions etc etc.

I don't want to just set the file encoding because I'm not actually typing non-ascii characters and that would be ignoring the actual problem.

Has anyone else found this? Solutions?


回答1:


That happens to me too! If you are in MacOS you´re typing ⌥ + space, if you are windows/Linux I guess it's alt + space



来源:https://stackoverflow.com/questions/18382834/sublimetext-keeps-inserting-xc2-characters

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