Unescaping URLs in Python

Jeffrey Froman jeffrey at fro.man
Mon Dec 25 16:46:15 EST 2006


John Nagle wrote:

> What's the appropriate Python function to call to unescape a URL which
> might contain things like that?

xml.sax.saxutils.unescape()


> Will this interfere with the usual "%" 
> type escapes in URLs?

Nope, and urllib.unquote() can be used to translate URL escapes manually.



Jeffrey



More information about the Python-list mailing list