Message236841
I made a program to read which files are in a windows folder, and saves in a file in order to print it, but when it tries to write in a file the following error appears:
UnicodeEncodeError: 'charmap' codec can't encode character '\u2010' in position 8: character maps to <undefined>
I extpected that being Python-3 an utf8 native, I do'n have this problems.
I send the Python script and some examples of files to read.
One of the failures example is the file named:
'LKC.6558‐100‐HD‐P‐101_C.xlsx\n'
which appears in windows as:
'LKC6558100HDP101_C.xlsx\n' |
|
Date |
User |
Action |
Args |
2015-02-27 21:13:19 | Gravitania | set | recipients:
+ Gravitania, vstinner, ezio.melotti |
2015-02-27 21:13:19 | Gravitania | set | messageid: <1425071599.87.0.548743835483.issue23543@psf.upfronthosting.co.za> |
2015-02-27 21:13:19 | Gravitania | link | issue23543 messages |
2015-02-27 21:13:19 | Gravitania | create | |
|