url.encore/quote

Duncan Booth duncan.booth at invalid.invalid
Thu Jun 26 13:11:16 EDT 2008


zowtar <zowtar at gmail.com> wrote:

> urlencode({'page': i, 'order': 'desc', 'style': 'flex power'})
> return:
> page=1&order=desc&style=flex+power
> 
> but I want:
> page=1&order=desc&style=flex%20power
> 
> and url.quote don't put the &'s and ='s
> any idea guys?

Why does it matter to you? The + means exactly the same as %20. When the 
server decodes the parameter it will get the space back whichever form you 
use.




More information about the Python-list mailing list