[Zope] Formatting Query Strings

Brian Takashi Hooper brian@garage.co.jp
Wed, 09 Feb 2000 11:15:33 +0900


I've always used url_quote_plus for this, which is like url_quote but
replaces spaces with '+', which apparently is appropriate for quoting
HTML form values.

--Brian Hooper

On Tue, 08 Feb 2000 19:37:01 -0500
Chris McDonough <chrism@digicool.com> wrote:

> I *think* it's <dtml-var name url_quote>
> 
> Guy Davis wrote:
> > 
> > I have seen the answer to this before, but I can't seem to find it now.
> > (Mailing list search is down.) I am generating a URL for a link as
> > follows:
> > 
> > http://servername/file?name=<dtml-var name>&id=<dtml-var id>
> > 
> > Now if the name is 'Bob' this works fine, but if the name is 'Bob
> > Johnson' the space breaks it.  There is a function to encode such a
> > string with the correct hex in place of spaces.  What is it?  Thanks.
> > 
> > --
> >        Guy Davis    mailto:davis@arc.ab.ca
> >   (403) 210-5334    Alberta Research Council
> > 
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> 
> -- 
> Chris McDonough - Digital Creations, Inc.
> Publishers of Zope - http://www.zope.org
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 
>