Re: Correct URL encoding

2009-03-15 Thread mattia
Il Sun, 15 Mar 2009 17:05:16 -0700, Chris Rebert ha scritto: > On Sun, Mar 15, 2009 at 4:54 PM, gervaz wrote: >> On Mar 16, 12:38 am, Graham Breed wrote: >>> mattia wrote: >>> > I'm using urlopen in order to download some web pages. I've always >>> > to replace some characters that are in the ur

Re: Correct URL encoding

2009-03-15 Thread Chris Rebert
On Sun, Mar 15, 2009 at 4:54 PM, gervaz wrote: > On Mar 16, 12:38 am, Graham Breed wrote: >> mattia wrote: >> > I'm using urlopen in order to download some web pages. I've always to >> > replace some characters that are in the url, so I've come up with: >> > url.replace("|", "%7C").replace("/", "

Re: Correct URL encoding

2009-03-15 Thread gervaz
On Mar 16, 12:38 am, Graham Breed wrote: > mattia wrote: > > I'm using urlopen in order to download some web pages. I've always to > > replace some characters that are in the url, so I've come up with: > > url.replace("|", "%7C").replace("/", "%2F").replace(" ", "+").replace > > (":", "%3A") > > T

Re: Correct URL encoding

2009-03-15 Thread Graham Breed
mattia wrote: I'm using urlopen in order to download some web pages. I've always to replace some characters that are in the url, so I've come up with: url.replace("|", "%7C").replace("/", "%2F").replace(" ", "+").replace (":", "%3A") There isn't a better way of doing this? Yeah, shame there's

Re: Correct URL encoding

2009-03-15 Thread Chris Rebert
On Sun, Mar 15, 2009 at 4:21 PM, mattia wrote: > I'm using urlopen in order to download some web pages. I've always to > replace some characters that are in the url, so I've come up with: > url.replace("|", "%7C").replace("/", "%2F").replace(" ", "+").replace > (":", "%3A") > There isn't a better

Correct URL encoding

2009-03-15 Thread mattia
I'm using urlopen in order to download some web pages. I've always to replace some characters that are in the url, so I've come up with: url.replace("|", "%7C").replace("/", "%2F").replace(" ", "+").replace (":", "%3A") There isn't a better way of doing this? -- http://mail.python.org/mailman/list

Re: URL encoding

2008-03-24 Thread Stefan Behnel
binaryj wrote: > On Mar 24, 7:04 pm, [EMAIL PROTECTED] wrote: >> Is there any method in the standard modules that can perform proper >> url encoding according to RFC? > > whats wrong with the current encoding ??? it just works fine!!! > > or is it that u dont know abo

Re: URL encoding

2008-03-24 Thread binaryj
On Mar 24, 7:04 pm, [EMAIL PROTECTED] wrote: > Is there any method in the standard modules that can perform proper > url encoding according to RFC? whats wrong with the current encoding ??? it just works fine!!! or is it that u dont know about urllib.urlencode() ?? -- http://mail.pyth

URL encoding

2008-03-24 Thread vvangelovski
Is there any method in the standard modules that can perform proper url encoding according to RFC? -- http://mail.python.org/mailman/listinfo/python-list