Example:
assert(decodeUri("hello%20world") == "hello world");
assert(decodeUri("test%2Fpath") == "test/path");string decodeUri(string uri) @trustedDecodes a URI-encoded string.
Converts percent-encoded sequences (e.g., %20 for space) to their character equivalents.
uri | URI string to decode |
Example:
assert(decodeUri("hello%20world") == "hello world");
assert(decodeUri("test%2Fpath") == "test/path");