Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib.parse
- import codecs
- input = '%ed%a1%85%ed%b7%97.svg'
- unescaped = urllib.parse.unquote(input)
- raw_bytes = bytes(unescaped, "utf-8")
- decoded = codecs.escape_decode(raw_bytes)[0].decode("utf-8")
- print(decoded)
Add Comment
Please, Sign In to add comment