Help with Latin Characters
Joao Jacome
slyerex at gmail.com
Sun Jul 24 11:15:43 EDT 2011
http://pastebin.com/aMrzczt4
When the script reaches a file with latin characters (ê é ã etc) it crashes.
Traceback (most recent call last):
File "C:\backup\ORGANI~1\teste.py", line 37, in <module>
Retrieve(rootdir);
File "C:\backup\ORGANI~1\teste.py", line 25, in Retrieve
Retrieve(os.path.join(dir,filename))
File "C:\backup\ORGANI~1\teste.py", line 18, in Retrieve
print l
File "C:\Python27\lib\encodings\cp850.py", line 12, in
ejavascript:void(0);ncode
return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode character u'\x8a' in
position 4
3: character maps to <undefined>
Does someone knows how to fix this?
Thank you!
João Victor Sousa Jácome
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110724/4c0c01a4/attachment.html>
More information about the Python-list
mailing list