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 martin.panter
Recipients Gravitania, ezio.melotti, martin.panter, vstinner
Date 2015-02-27.23:19:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1425079156.35.0.150826471674.issue23543@psf.upfronthosting.co.za>
In-reply-to
Content
Python 3 will only use UTF-8 encoding if you ask it to, or if the default locale encoding happens to be UTF-8. I suspect one of the file names in the “hay” list must contain a Unicode hyphen (U+2010), and your default encoding is some single byte encoding that cannot encode the hyphen. If you definitely want to write a UTF-8 file, use the open(encoding="utf-8") parameter.
History
Date User Action Args
2015-02-27 23:19:16martin.pantersetrecipients: + martin.panter, vstinner, ezio.melotti, Gravitania
2015-02-27 23:19:16martin.pantersetmessageid: <1425079156.35.0.150826471674.issue23543@psf.upfronthosting.co.za>
2015-02-27 23:19:16martin.panterlinkissue23543 messages
2015-02-27 23:19:16martin.pantercreate