Function utf8ToBytes

  • Converts a UTF-8 string to the equivalent bytes

    Parameters

    • str: string

    Returns Uint8Array

    Example

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

Generated using TypeDoc