[Zope] encoding strings for CGI

Alexander Staubo alex@mop.no
Mon, 14 Jun 1999 04:49:05 +0200


There's no reason for Zope not to URL encode slashes (in my experience
URL encoders usually encode everything but a-zA-Z0-9; has URL encoding
ever been standarized, anyway?), although I'm not sure if this omission
causes trouble for browsers. Exactly how have you been bitten?

--
Alexander Staubo             http://www.mop.no/~alex/
"What the hell, he thought, you're only young once, and threw
himself out of the window. That would at least keep the element of
surprise on his side."
--Douglas Adams, _The Hitchhiker's Guide to the Galaxy_

>-----Original Message-----
>From: anthony@nextTelecom.com [mailto:anthony@nextTelecom.com]On Behalf
>Of Anthony Baxter
>Sent: 14. juni 1999 04:28
>To: Alexander Staubo
>Cc: zope@zope.org
>Subject: Re: [Zope] encoding strings for CGI
>
>
>
>>>> Alexander Staubo wrote
>> Simple. To URL encode "foo", just do:
>>
>> 	<!--#var foo url_quote-->
>
>Note that this won't quote the / character, though - I'm not sure
>what the best way to handle that is (yes, it's something that's bitten
>me before).
>
>Anthony.
>
>
>_______________________________________________
>Zope maillist  -  Zope@zope.org
>http://www.zope.org/mailman/listinfo/zope
>
>(For developer-specific issues, use the companion list,
>zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
>