Re: solving the %20 problem

2009-11-02 Thread Kenneth Gonsalves
On Monday 02 Nov 2009 9:54:11 am Kenneth Gonsalves wrote: > On Monday 02 Nov 2009 9:36:23 am Graham Dumpleton wrote: > > > these are usually user generated - they love to put spaces. I can > > > handle spaces, but would like to know how the spaces become %20 and how > > > to prevent this. > > > >

Re: solving the %20 problem

2009-11-01 Thread Kenneth Gonsalves
On Monday 02 Nov 2009 9:36:23 am Graham Dumpleton wrote: > > these are usually user generated - they love to put spaces. I can handle > > spaces, but would like to know how the spaces become %20 and how to > > prevent this. > > As someone else pointed out, likely from the browser. it is not

Re: solving the %20 problem

2009-11-01 Thread Graham Dumpleton
On Nov 2, 2:04 pm, Kenneth Gonsalves wrote: > On Monday 02 Nov 2009 8:14:22 am Mike Ramirez wrote:> > hi, > > > when I switched from apache to nginx, I found that all my spaces in urls > > >  were being replaced with '%20' which caused the urls to fail and > > > database

Re: solving the %20 problem

2009-11-01 Thread Mike Ramirez
On Sunday 01 November 2009 19:04:06 Kenneth Gonsalves wrote: > these are usually user generated - they love to put spaces. I can handle > spaces, but would like to know how the spaces become %20 and how to prevent > this. > Firefox usually encodes them to %20 when it's copied and pasted from the

Re: solving the %20 problem

2009-11-01 Thread Kenneth Gonsalves
On Monday 02 Nov 2009 8:14:22 am Mike Ramirez wrote: > > hi, > > when I switched from apache to nginx, I found that all my spaces in urls > > were being replaced with '%20' which caused the urls to fail and > > database lookup also to fail. I used urllib.unquote in views and a \S in > > urls to

Re: solving the %20 problem

2009-11-01 Thread Mike Ramirez
On Sunday 01 November 2009 17:27:08 Kenneth Gonsalves wrote: > hi, > when I switched from apache to nginx, I found that all my spaces in urls > were being replaced with '%20' which caused the urls to fail and database > lookup also to fail. I used urllib.unquote in views and a \S in urls to >

solving the %20 problem

2009-11-01 Thread Kenneth Gonsalves
hi, when I switched from apache to nginx, I found that all my spaces in urls were being replaced with '%20' which caused the urls to fail and database lookup also to fail. I used urllib.unquote in views and a \S in urls to work around this. Is there some cleaner solution to this? -- regards