mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
330 B
12 lines
330 B
15 years ago
|
include("mjsunit.js");
|
||
|
|
||
|
function onLoad () {
|
||
|
var a = [116,101,115,116,32,206,163,207,131,207,128,206,177,32,226,161,140,226,160, 129,226,160,167,226,160,145];
|
||
|
var s = node.encodeUtf8(a);
|
||
|
assertEquals("test Σσπα ⡌⠁⠧⠑", s);
|
||
|
|
||
|
a = [104, 101, 108, 108, 111];
|
||
|
s = node.encodeUtf8(a);
|
||
|
assertEquals("hello", s);
|
||
|
}
|