decodeComponent

Decodes the URI string encodedURI into a UTF-8 string and returns it. All escape sequences are decoded.

string
decodeComponent
(
Char
)
(
scope const(Char)[] encodedURIComponent
)
if ()

Examples

assert("foo%2F%26".decodeComponent == "foo/&");
assert("dl%C3%A4ng%20r%C3%B6cks".decodeComponent == "dläng röcks");
assert("!%40%23%24%25%5E%26*(".decodeComponent == "!@#$%^&*(");

Meta