-
-
Save ibeauregard/44a940689a079214a3e3f8c514116a19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def decoded(string): | |
return codecs.escape_decode( | |
bytes(string.replace(r'\"', r'\\"'), "utf-8"))[0].decode("utf-8") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment