We've been making changes to how we organize and display our docs. Our work isn't done but we'd love your feedback.

cstr_escape()

Escapes bytes unsafe for printing from a string using C-style escape sequences.

Format

STRING
cstr_escape(STRING string)

Examples

1
2
3
declare local var.escaped STRING;
set var.escaped = "city=%22" + cstr_escape(client.geo.city.ascii) + "%22";
# var.escaped is now e.g. city="london"