The string to encode
Optionalformat: "uint16"Output format (default: 'uint16')
The encoded bytes
Encode a string to UTF-16 bytes (strict mode)
Throws on invalid Unicode (unpaired surrogates)
The string to encode
Output format (default: 'uint16')
The encoded bytes
Encode a string to UTF-16 bytes (strict mode)
Throws on invalid Unicode (unpaired surrogates)
The string to encode
Output format (default: 'uint16')
The encoded bytes
Encode a string to UTF-16 bytes (strict mode)
Throws on invalid Unicode (unpaired surrogates)
The string to encode
Optionalformat: Utf16FormatOutput format (default: 'uint16')
The encoded bytes
Encode a string to UTF-16 bytes (strict mode)
Throws on invalid Unicode (unpaired surrogates)