hakermania hakermania - 1 year ago 120
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")
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download