[REBOL] ! in URLs, and inserting strings in bitsets
From: gregg:pointillistic at: 30-Mar-2010 12:37
Hi all,
I just needed to read a url that has a ! in it, which I guess I've
never done before, because it doesn't work. e.g.
http://www.nzwebz.co.nz/directory.php?webz=search&%3Bsearch_for=yahoo!xtra Pro Mail
! is a valid url char, according to RFC1738, but DECODE-URL chokes on
it. Should net-utils/URL-Parser/path-char include "!"?
path-char: insert copy alpha-num "=+-_.;:&$-%*',~?| []()^"" ; !!! note: space allowed
I have to admit, I was also thrown a bit by the use of INSERT here.
The combination of INSERT, COPY, and a string PARAM tricked me into
thinking alpha-num was also a string (yes, I know, it's right there),
and that the result of INSERT on a string was not what was wanted.
What do you think; should you be able to insert a string into a bitset
and have it coerced automatically?
-- Gregg