Binary

ENCODE_STRING

Converts a string to a binary, given an encoding.

Syntax:

ENCODE_STRING(<string>, encoding)

For example:

ENCODE_STRING("Hello world", "utf-8")

DECODE_STRING

Converts binary to string, given an encoding.

Syntax:

DECODE_STRING(<binary>, encoding)

For example:

b := ENCODE_STRING("Hello world", "utf-8");
DECODE_STRING(b, "utf-8") // "Hello world"