Message231115
| Author |
vstinner |
| Recipients |
ezio.melotti, fhoech, vstinner |
| Date |
2014年11月13日.14:40:44 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1415889644.51.0.866465652984.issue22862@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Your problem has two solutions.
1) Upgrade to Python 3 which handles correctly your use case (thanks to the PEP 383, surrogateescape error handler)
2) Only process filenames as bytes, and encode/decode manually (so you can decide how to handle undecodable filenames) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年11月13日 14:40:44 | vstinner | set | recipients:
+ vstinner, ezio.melotti, fhoech |
| 2014年11月13日 14:40:44 | vstinner | set | messageid: <1415889644.51.0.866465652984.issue22862@psf.upfronthosting.co.za> |
| 2014年11月13日 14:40:44 | vstinner | link | issue22862 messages |
| 2014年11月13日 14:40:44 | vstinner | create |
|