[Zope] Formatting Query Strings

Jeff K. Hoffman jeff@goingv.com
Wed, 9 Feb 2000 11:32:31 -0500 (EST)


On Wed, 9 Feb 2000, Guy Davis wrote:

> Thanks everyone.  Both url_quote and url_quote_plus seem to work.
> 
> http://servername/file?name=&dtml-name;&id=&dtml-id;
> does not work however as it doesn't properly replace the spaces.

You can do this, instead, and it will work (I just tested it):

http://servername/file?name=&dtml.url_quote_plus-name;
                            &id=&dtml.url_quote_plus-id;

Hope this helps.

--Jeff

---
Jeff K. Hoffman                                         704.849.0731 x108
Chief Technology Officer                                mailto:jeff@goingv.com
Going Virtual, L.L.C.                                   http://www.goingv.com/