Skip to content

Instantly share code, notes, and snippets.

@ibeauregard
Last active June 10, 2021 23:36
Show Gist options
  • Save ibeauregard/44a940689a079214a3e3f8c514116a19 to your computer and use it in GitHub Desktop.
Save ibeauregard/44a940689a079214a3e3f8c514116a19 to your computer and use it in GitHub Desktop.
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