Rate this page:

bytes2str

Copy URL
bytes2str(data: 

number[]

,
encoding:

string

):

string

Given array of numbers create a string from them using 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, "utf-8" by default.

Returns

  • type:

    string