How to turn an encoded link such as "http%3A%2F%2Fexample.com%2Fwhatever" into "http://example.com/whatever" in python?
urllib.unquote() on its own may still cause problems by throwing the exception:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position n: ordinal not in range(128)
In that case try:
print urllib.unquote("Ober%C3%B6sterreich.txt").decode("utf8")
I always found links in html source stored in such format, the question is how do I change such links back to what it's normally like?
Thanks a lot!