Function bytesToUtf8

  • Converts bytes to the equivalent UTF-8 string

    Parameters

    • arr: Uint8Array

    Returns string

    Example

    bytesToUtf8(Uint8Array.from([115, 116, 97, 99, 107, 115, 32, 211, 190])); // 'stacks ΣΎ'
    

Generated using TypeDoc