I use node js and I have an array of integers. All values are from the
interval [0,255]

var arr = [249, 13, 105, 170];

Every integer value is a char code for symbol. It's required to join
all chars together to build string according this rule: 1 number = 1
byte.
So, if the array length equals 4, then the size of the string must be
4 bytes.

And it works fine for codes less than 128, 'cause it match with ASCII,
but there is a problem with codes from interval [128, 255] it could
take from 1 to 4 bytes.

Is it possible to build string where 1 char = 1 byte  and char codes
are from the interval [0, 255]?
Do you have any idea?

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to