hakermania hakermania - 1 year ago 85
Python Question

Transform URL string into normal string in python (%20 to space etc)

Is there any way in python to transfrom this-> %CE%B1%CE%BB%20 into this: "αλ " which is its real representation?

Thanks in advance!

Answer Source
>>> import urllib2
>>> print urllib2.unquote("%CE%B1%CE%BB%20")
αλ