pylint #123892 UnicodeEncodeError: 'latin-1' codec can't encode character [validation pending]
I have a Portuguese word in my file which results on error when i run Pylint ( 0.27.0 ) on it.
Where in the actual line in the file is as:
The actual error has been pasted here: http://pastebin.com/yk1dC93y
Please let me know how to resolve this issue | |
priority | normal |
---|---|
type | bug |
done in | 0.28.0 |
load left | 0.000 |
closed by | #ff86ccc61d36 closes #123892 by adding errors=replace when encoding unicode strings |
patch | closes #123892 by adding errors=replace when encoding unicode strings [applied] |
Comments
-
2013/04/12 14:07, written by sthenault
-
2013/04/12 14:16, written by sthenault
add commentwhat's the error you get? Do you mean it crashes, or taht you see 'E7' instead of 'ç'?
Also, what's the encoding of the python source code and of your environment ?
ok, seen the UnicodeEncode crash in the pastebin. The pb is very likely that your latin-1 environment can't display line where a convention violation has been detected, making pylint choke. The patch below should fix the pb::