UTF-8 encodes the input string and returns a Uint8Array containing the encoded bytes.
method
util.TextEncoder.encode
input?: string
): NonSharedUint8Array;
@param input
The text to encode.
method
UTF-8 encodes the input string and returns a Uint8Array containing the encoded bytes.
The text to encode.