[EMAIL PROTECTED] wrote: >> From: Lee Jones >> Subject: [Tutor] urlencode >> Hello, >> I am trying to urlencode a string. In python the only thing I can see > is the urllib.urlencode(). But this takes a dictionary, and returns >> "key=value", which is not what I want. I only want to url-encode a > string. Does any one know how to do this in python > > > Are you looking for urllib.quote() ?
Or urllib.quote_plus() which also escapes spaces. This is the function that is called by urlencode(). Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor