Old: Wrong encoding specified (%s)


Note: This message was removed in PyLint 0.23. Python 2.5 and above handles this error by raising a SyntaxError exception (see E0001).

Used when a known encoding is specified but the file doesn't seem to be actually in this encoding.


If PyLint is able to tell that the non-ASCII characters in a program look like a different encoding that what you specified at the top of the file, it will tell you so. Make sure you set this correctly if you want Python to interpret your program correctly!

See also E0501.

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License