Rate this page:

str2bytes

Copy URL
str2bytes(data: 

string

,
encoding:

string

):

number[]

Creates an array of numbers from parsing string in specified codepage

Parameters

  • data:

    string

    String to parse

  • encoding:

    string

    String encoding, the default value is utf-8.

Returns

  • type:

    number[]