[issue18679] include a codec to handle escaping only control characters but not any others
Derek Wilson
report at bugs.python.org
Thu Aug 8 22:47:28 CEST 2013
Derek Wilson added the comment:
> e.encode('latin1', 'backslashreplace').decode('unicode-escape')
this works, but still the quotes are backslash escaped.
translate will do what i need for my use case, but it doesn't support streaming for larger chunks of data.
it is nice that there is a workaround but i do still think this is a valuable enough feature that there should be a builtin codec for it.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18679>
_______________________________________
More information about the Python-bugs-list
mailing list