"ianitux" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> and see if that works? I'm not sure if quote() will convert the %20 into >> +, >> though, but it may. > > This is what quot do. > >>>> import urllib >>>> u = urllib >>>> u.quote(u.urlencode({'page': 'i', 'order': 'desc', 'style': 'flex >>>> power'})) > 'style%3Dflex%2Bpower%26page%3Di%26order%3Ddesc'
I know quote will convert spaces to %20, just wasn't sure if it would explicitly convert + to %20. But it seems the output isn't what the OP wants anyway, because he wanted the & and = symbols. -- http://mail.python.org/mailman/listinfo/python-list