Monkey Raptor

Saturday, March 25, 2017

Python: How to Unescape String (DecodeURI in JavaScript)

We can use urllib module to do this. Oh and by the way, this is on Python 2 point something.

This is the documentation of urllib.unquote utility


The opposite of that function is urllib.quote(string) with additional argument to create a custom safe characters list. This is the documentation

Python: How to Unescape String (DecodeURI in JavaScript)
https://monkeyraptor.johanpaul.net/2017/03/python-how-to-unescape-string-decodeuri.html

No comments

Post a Comment

Tell me what you think...