mit-scheme-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MIT-Scheme-devel] Why does URL:ENCODE-STRING not encode & and ; etc.?


From: craven
Subject: [MIT-Scheme-devel] Why does URL:ENCODE-STRING not encode & and ; etc.?
Date: Wed, 02 May 2012 13:21:32 +0200
User-agent: Notmuch/0.11+77~gad6d0d5 (http://notmuchmail.org) Emacs/24.1.50.2 (i686-pc-linux-gnu)

Hello fellow Schemers!

I may misunderstand things here, but isn't URL:ENCODE-STRING meant to
propertly encode characters that are special to urls? Examples would be
=, & and ; (which should all be encoded). However, 

> (url:encode-string "a=b&b=c;c=d") 

just echoes that string literally ("a=b&b=c;c=d") without any encoding.
This is by design, as these characters are explicitly added to
URL:CHAR-SET:UNESCAPED in runtime/url.scm. 

Is this implementation based on a different understanding of
url-encoding? What am I missing here? I'm trying to use it to url-encode
the name and value of cookies for HTTP, which necessarily means it must
encode at least = and ; correctly.

Thanks for any help!

Peter



reply via email to

[Prev in Thread] Current Thread [Next in Thread]