[Zope] problem with netscape & url encodings

Casey Duncan cduncan@kaivo.com
Fri, 01 Jun 2001 08:25:38 -0600


Alejandro Fernandez wrote:
> 
> Hi
> 
> I have a page at barnton.gcal.ac.uk:8080/members/ where I build a call
> to a dtml object as so:
> 
> <a href="Chapterlisting?chapterid=&dtml-intHqId;&HqName=<dtml-var
> Hq_Name>"><dtml-var Hq_Name>
> 
> On ie, this sends you to the Chapterlisting dtml object, with the
> parameter sent url encoded, as "hq+name". On netscape, I just found out
> it sends it as "hq name" (without the +), causing a 400 error. Is there
> a function I can use to force this parameter to be url encoded?
> 
> Thanks
> 
> Ale
> --
> Alejandro Fernandez Bscp 5 Caledonian University
> 0790 541 8809 - ale@nin.cx
> 

Try:

<a href="Chapterlisting?chapterid=&dtml-intHqId;&HqName=<dtml-var
Hq_Name url_quote_plus>">...

hth,
-- 
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>