[Zope] URL quoting in python

Chris Withers chrisw@nipltd.com
Thu, 20 Jul 2000 10:06:33 +0100


Kapil Thangavelu wrote:
> what i am trying to do
> <dtml-call "RESPONSE.redirect(URL1+'?foo_bar='+foobar)">

<dtml-call "RESPONSE.redirect(URL1+'?foo_bar='+foobar)" url_quote>

<dtml-call "RESPONSE.redirect(URL1+'?foo_bar='+foobar)" url_quote_plus>

dependent on whether you want spaces coded as + or %20

cheers,

Chris