[Issue 1346] std.uri.decode/decodeComponent do not decode '+' plus
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Sep 3 16:59:41 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1346
alan at akbkhome.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
------- Comment #2 from alan at akbkhome.com 2007-09-03 18:59 -------
http://hk.php.net/manual/en/function.urlencode.php
"Returns a string in which all non-alphanumeric characters except -_. have been
replaced with a percent (%) sign followed by two hex digits and spaces encoded
as plus (+) signs. It is encoded the same way that the posted data from a WWW
form is encoded, that is the same way as in application/x-www-form-urlencoded
media type. This differs from the ยป RFC 1738 encoding (see rawurlencode()) in
that for historical reasons, spaces are encoded as plus (+) signs."
It looks like it was necessary to produce 2 versions in PHP, as real-world
usage demanded the ability to encode and decode real-urls, as per the
x-www-frm-urlencoded media type.
I've bumped it to a enhancement - although it's pretty critical if you use D to
respond to CGI requests..
--
More information about the Digitalmars-d-bugs
mailing list