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

No comments:

Post a Comment

Tell me what you think...