Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SublimeText keeps inserting \xc2 characters

Tags:

sublimetext2

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?

like image 264
Joe Avatar asked Aug 22 '13 14:08

Joe


1 Answers

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

like image 86
moliware Avatar answered Sep 20 '22 13:09

moliware