[Issue 1937] std.uri.decode throws wrong exception
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Feb 25 00:56:36 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=1937
Stefan Zipproth <stefan.zipproth at web.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
--- Comment #2 from Stefan Zipproth <stefan.zipproth at web.de> 2014-02-25 00:56:32 PST ---
RFC 3986 states in section 2.1. Percent-Encoding
For example, "%20" is the percent-encoding for the binary octet
"00100000" (ABNF: %x20), which in US-ASCII corresponds to the space
character (SP).
So UTF-8 is not the standard used for URI percent encoding. Therefore,
std.uri.decode should not throw an exception if its parameter contains %E4. It
is allowed for browsers to encode German umlaut ä as %E4, which was the reason
I ran into this problem (because my server side application crashed as soon as
std.uri.decode was called).
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list