Rate this page:

bytes2str

Copy URL
bytes2str(data: 

number[]

,
encoding:

string

):

string

Creates a string from an array of numbers with specified encoding

Parameters

  • data:

    number[]

    Array of integers from 0 to 255 to create a string from

  • encoding:

    string

    Encoding to use for string creation, the default value is utf-8.

Returns

  • type:

    string