Function toUtf8

  • Convert string to UTF-8 byte array.

    Parameters

    • s: string

    Returns Uint8Array