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
-- http://mail.python.org/mailman/listinfo/python-list