This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Gravitania
Recipients Gravitania, ezio.melotti, vstinner
Date 2015-02-27.21:13:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1425071599.87.0.548743835483.issue23543@psf.upfronthosting.co.za>
In-reply-to
Content
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:
'LKC6558100HDP101_C.xlsx\n'
History
Date User Action Args
2015-02-27 21:13:19Gravitaniasetrecipients: + Gravitania, vstinner, ezio.melotti
2015-02-27 21:13:19Gravitaniasetmessageid: <1425071599.87.0.548743835483.issue23543@psf.upfronthosting.co.za>
2015-02-27 21:13:19Gravitanialinkissue23543 messages
2015-02-27 21:13:19Gravitaniacreate