colinta / SublimeStringEncode

Converts characters from one "encoding" to another using a transformation (think HTML entities, not character encodings)
Other
150 stars 22 forks source link

Non-ASCII character '\xc2' in file ( escape_table.py ) #23

Closed dsole closed 9 years ago

dsole commented 9 years ago

After a recent update I now get this error in the console. I'm on Windows 7 64 bit with Sublime Text 2.0.2

Reloading plugin C:\Users\soled\AppData\Roaming\Sublime Text 2\Packages\StringEncode\string_encode.py
Traceback (most recent call last):
  File ".\sublime_plugin.py", line 62, in reload_plugin
    m = imp.load_module(modulename, *m_info)
  File ".\string_encode.py", line 10, in <module>
    from stringencode.escape_table import (
  File ".\stringencode\escape_table.py", line 6
SyntaxError: Non-ASCII character '\xc2' in file .\stringencode\escape_table.py on line 6, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
colinta commented 9 years ago

I added # coding: utf8 to that file. Thanks for reporting it!

dsole commented 9 years ago

Thank you !

shashiRS commented 6 years ago

Thank You, it works fine!