url encode

Yongjian Xu jimxu at google.com
Tue Jun 5 14:26:07 EDT 2007


you can take a look urlib.quote or quote_plus methods.

Jim

On 6/5/07, Lee Jones <LJones at securetrading.com> wrote:
>
>  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
>
> Thanks
>
> Lee
>
>
>
>
>
> Lee Jones,
>
> Software Developer
>
> *SecureTrading Ltd*
> European Operations Centre
> Parc Menai
> Bangor
> Gwynedd LL57 4BL
> T: 01248 672 028
> F: 01248 672 099
>
> www.securetrading.com
>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>


-- 
Yongjian (Jim) Xu
===========
Sysops
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070605/785f2f0b/attachment.html>


More information about the Python-list mailing list