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