mirror of https://github.com/lukechilds/node.git
Browse Source
http://groups.google.com/group/nodejs/browse_thread/thread/5ad0660a0959d885#v0.7.4-release
Ryan
16 years ago
2 changed files with 34 additions and 1 deletions
@ -0,0 +1,11 @@ |
|||
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); |
|||
} |
Loading…
Reference in new issue