• Returns the UTF-8 byte representation of str.

    If form is disabled, the string is not normalized.

    Parameters

    • stri: string

      the string to convert to UTF-8 bytes.

    • form: boolean = true

      whether to normalize the string.

    Returns Uint8Array

    • the UTF-8 byte representation of str.