decode

Decodes the URI string encodedURI into a UTF-8 string and returns it. Escape sequences that resolve to reserved URI characters are not replaced. Escape sequences that resolve to the '#' character are not replaced.

string
decode
(
Char
)
(
scope const(Char)[] encodedURI
)
if ()

Examples

assert("foo%20bar".decode == "foo bar");
assert("%3C%3E.@.%E2%84%A2".decode == "<>.@.™");
assert("foo&/".decode == "foo&/");
assert("!@#$&*(".decode == "!@#$&*(");

Meta