[Tutor] urlencode
Kent Johnson
kent37 at tds.net
Tue Jun 5 12:31:29 CEST 2007
Senthil_OR at Dell.com 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
More information about the Tutor
mailing list