Function utf8ToUint8Array

Converts a UTF-8 string to a Uint8Array.

  • Parameters

    • str: string

      The UTF-8 string to convert.

    Returns Uint8Array

    The converted Uint8Array.