Guest User

Untitled

a guest
Oct 21st, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. import urllib.parse
  2. import codecs
  3.  
  4. input = '%ed%a1%85%ed%b7%97.svg'
  5. unescaped = urllib.parse.unquote(input)
  6. raw_bytes = bytes(unescaped, "utf-8")
  7. decoded = codecs.escape_decode(raw_bytes)[0].decode("utf-8")
  8. print(decoded)
Add Comment
Please, Sign In to add comment