◐ Shell
clean mode source ↗

Message 26837 - Python tracker

Logged In: YES 
user_id=261020

The problem is more general, so perhaps:

URLQUOTE_SAFE_URL_CHARS = "!*'();:@&=+$,/?%#[]~"
newurl = urllib.quote(url, URLQUOTE_SAFE_URL_CHARS)


Caveat: I still haven't read RFCs 3986/3987...