Petr Dlouhý added the comment:
For anyone stuck on Python 2.x, here is an workaround (maybe it could find it's
way to documentation also):
def fix_grouping(bytestring):
try:
return unicode(bytestring)
except UnicodeDecodeError:
return bytestring.decode("utf-8")
----------
nosy: [email protected]
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue15276>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com