Message108150
I closed issue #850997, mbcs is now really strict by default:
>>> 'h\u00e4kkinen'.encode('mbcs')
UnicodeEncodeError: ...
>>> 'h\u00e4kkinen'.encode('mbcs', 'replace')
"b'hakkinen'"
PyUnicode_EncodeFSDefault(), PyUnicode_DecodeFSDefault() and os.fsencode() use mbcs with strict error handler on Windows. On other OS, these functions use surrogateescape error handler, but mbcs only supports strict and replace (to encode, and strict and ignore to decode). |
|
Date |
User |
Action |
Args |
2010-06-18 23:37:44 | vstinner | set | recipients:
+ vstinner, gvanrossum, amaury.forgeotdarc, benjamin.peterson, Jukka Aho, asvetlov |
2010-06-18 23:37:44 | vstinner | set | messageid: <1276904264.02.0.469231955525.issue4352@psf.upfronthosting.co.za> |
2010-06-18 23:37:42 | vstinner | link | issue4352 messages |
2010-06-18 23:37:42 | vstinner | create | |
|