Claude Henchoz wrote: > I have a huge list of URLs. These URLs all have ASCII codes for special > characters, like "%20" for a space or "%21" for an exclamation mark. > > I've already googled quite some time, but I have not been able to find > any elegant way on how to replace these with their 'real' counterparts > (" " and "!"). > > Of course, I could just replace(), but that seems to be a lot of work.
>>> import urllib >>> urllib.unquote("http://docs.python.org/lib/module-urllib.html%20%21") 'http://docs.python.org/lib/module-urllib.html !' </F> -- http://mail.python.org/mailman/listinfo/python-list