decodeUri

fnstring decodeUri(string uri) @trusted

Decodes a URI-encoded string.

Converts percent-encoded sequences (e.g., %20 for space) to their character equivalents.

Parameters

uriURI string to decode

Returns

The decoded string.

Example:

assert(decodeUri("hello%20world") == "hello world");
assert(decodeUri("test%2Fpath") == "test/path");