[Zope3-dev] Escape Character Summary Table

Phillip J. Eby pje@telecommunity.com
Thu, 06 Jun 2002 11:59:50 -0500


At 12:39 PM 6/6/02 -0400, Guido van Rossum wrote:
>> Okay, so the problem here is that:
>> 
>> netscape -remote 'openURL(http://foo.bar/baz,spam)'
>> 
>> is interpreted as two arguments to openURL?  Is that correct?
>
>Yes.
>
>> Does quoting the URL fix it, i.e.:
>> 
>> netscape -remote 'openURL("http://foo.bar/baz,spam")'
>> 
>> And if so, is this an unacceptable cost?  Thanks.
>
>No, it interprets the " as part of the URL.  Nice try.
>

Hm.  This seems to imply that the webbrowser module should URL-encode ",",
although then that might break LDAP URLs.  Ugh.

Are the Python and Emacs uses of this the only ones we care about, or are
there others?