[Zope] Formatting Query Strings

Guy Davis davis@arc.ab.ca
Tue, 08 Feb 2000 16:59:41 -0700


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