STINNER Victor <victor.stinner at haypocalc.com> added the comment:
Does the follow code work on Windows?
>>> '\uDC80'.encode("utf8", "surrogatepass")
b'\xed\xb2\x80'
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8386>
_______________________________________