Specifies the character encoding for string manipulation. Used when converting strings to binary data and vice-versa, for example, when handling file uploads or certain string operations in `extract` or `evaluate`.

Definition

enum BufferEncoding {
  ASCII
  UTF8
  UTF16LE
  UCS2
  BASE64
  BASE64URL
  LATIN1
  HEX
}

Values

ASCII

American Standard Code for Information Interchange. A 7-bit character encoding.

UTF8

Unicode Transformation Format - 8-bit. A variable-width character encoding capable of encoding all possible Unicode code points.

UTF16LE

Unicode Transformation Format - 16-bit, little-endian. A variable-width character encoding for Unicode.

UCS2

Universal Character Set coded in 2 octets. A fixed-width character encoding for Unicode, largely superseded by UTF-16.

BASE64

Encodes binary data into a printable ASCII string format. Commonly used for data URLs or embedding images.

BASE64URL

A URL-safe variant of BASE64 encoding.

LATIN1

ISO/IEC 8859-1. A single-byte encoding that covers many Western European languages.

HEX

Hexadecimal encoding. Each byte of data is represented by two hexadecimal digits.