Http module

percent_encode

procedureextensionexperimentalSource

Percent-encodes everything but unreserved characters (RFC 3986), for building queries and URLs.

Example
text := percent_encode("a b&c");
assert(text == "a%20b%26c");
free(text);

Doesn't run in the browser (skipped on wasm).

percent_encode :: (text: string) -> string

Parameters

text: string

Returns

string

See also