[Zope] url_quote_plus inside of RESPONSE.redirect

wchr wchr@gmx.at
Thu, 27 Jun 2002 21:49:44 +0200

you can use url_quote_plus from a python script:

from Products.PythonScripts.standard import url_quote_plus
return url_quote_plus(query)

see zope api
"module standard"

how to use that from DTML? i don=B4t know...



Sven Rudolph wrote:
 > Hello all
> I have a variable called "query" which contains a search query.
> For example:"m=E4=DFig Gen=FCgsam" (with german special characters ;-)
> With
> <dtml-var query url_quote_plus>
> I can use it inside of an anchor tag like this:
> <a href=3D"/MyZCatalog/report?query=3D<dtml-var query url_quote_plus>">
> But how do I get url_quote_plus in this case?
> <dtml-call "RESPONSE.redirect('/MyZCatalog/report?query=3D'+query)">
> In this case no special characters are "url_quoted".
> I know I could use javascript here, but I want to avoid this.
> Thanks in advance for any help
> Sven