Python 3 bytes vs strings -
this may duplicate can't solve problem. line gives me error
typeerror: 'str' not support buffer interface .
unescaped = html.replace(r'\""', '"') does mean have write
unescaped = html.replace(bytes(r'\""', 'utf-8'), bytes('"', 'utf-8')) each time need replace string?
thank in advance.
you using literal values use bytes literal string, b prefix:
unescaped = html.replace(rb'\""', b'"')
Comments
Post a Comment