Skip to content

Bars Specification 0.1.0 — Transform: url_decode

Category: string · Since: 0.1.0

Reverses form-encoding.

Reverses form-encoding: + becomes a space, and %HH (any hex case) becomes the corresponding byte; the resulting bytes are decoded as UTF-8. A malformed percent-sequence is an error.

Input coercion: string

Arguments

None.

Arity: 0–0

Worked examples

{{{ q | url_decode }}}

hello world!
{{{ q | url_decode }}}

café

Full fixture: transforms/transform-url_decode.json