[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
http://www.zope.org/Documentation/ZopeBook/AppendixB.stx
"module standard"

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

/wolfie

--=20
http://www.t0.or.at


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 ;-)
>=20
> 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>">
>=20
> But how do I get url_quote_plus in this case?
> <dtml-call "RESPONSE.redirect('/MyZCatalog/report?query=3D'+query)">
>=20
> In this case no special characters are "url_quoted".
>=20
> I know I could use javascript here, but I want to avoid this.
>=20
> Thanks in advance for any help
>=20
> Sven
>=20
>=20