[issue21331] Reversing an encoding with unicode-escape returns a different result
R. David Murray
report at bugs.python.org
Tue Apr 22 23:13:34 CEST 2014
R. David Murray added the comment:
No. x.encode('unicode-escape').decode('unicode-escape') should return the same result, and it does.
The bug, I think, is that bytes.decode('unicode-escape') is not objecting to the non-ascii characters. It appears to be treating them as latin1, and that strikes me as broken.
----------
nosy: +lemburg, ncoghlan, r.david.murray
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21331>
_______________________________________
More information about the Python-bugs-list
mailing list