Martijn Pieters added the comment:

I don't understand why encoding with `surrogateescape` isn't supported still; 
is it the fact that a surrogate would have to produce *single bytes* rather 
than double? E.g. b'\x80' -> '\udc80' -> b'\x80' doesn't work because that 
would mean the UTF-16 and UTF-32 codec could then end up producing an odd 
number of bytes?

----------
nosy: +mjpieters

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12892>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to