How to replace a double backslash with a single backslash in python? [duplicate]

Python3:

>>> b'\\u201c'.decode('unicode_escape')
'“'

or

>>> '\\u201c'.encode().decode('unicode_escape')
'“'

Leave a Comment