Skip to content
Legacy docs for Tenzir v5.x. For the latest Tenzir v6 series, visit docs.tenzir.com. Migrating from v5? Read the Tenzir v6 migration guide.

Encodes strings using URL encoding.

encode_url(bytes: blob|string) -> string

Encodes strings or blobs using URL encoding, replacing special characters with their percent-encoded equivalents.

The input to URL encode.

from {input: "Hello World & Special/Chars?"}
encoded = input.encode_url()
{
input: "Hello World & Special/Chars?",
encoded: "Hello%20World%20%26%20Special%2FChars%3F",
}

Last updated: