Function utf8ToBytes

  • Converts a UTF-8 string to the equivalent bytes

    Example

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

    Parameters

    • str: string

    Returns Uint8Array

Generated using TypeDoc