Search code examples
pythonpycurl

pycurl and unescape


curl_unescape doesnt seem to be in pycurl, what do i use instead?


Solution

  • Have you tried urllib.quote?

    import urllib
    print urllib.quote("some url")
    
    some%20url
    

    here's the documentation