David Beazley <[email protected]> added the comment:
Actually, here's another one of my favorite examples:
>>> import struct
>>> struct.pack("s","\xf1")
b'\xc3'
>>>
Not only does this not encode the correct value, it doesn't even encode the
entire UTF-8 encoding (just the first byte of it). Like I said, pity the poor
bastard who puts something that in their code and they spend the whole day
trying figure out where in the hell '\xf1' magically got turned into '\xc3'.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue10783>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com