import console; //多字节转码 var str = '\xC4\xD0\x00\x00\x00\x00'; str = string.fromto(str,936,65001,-1); console.log("内容是:" ,str );//输出:男 console.pause(true);
console.log(string.hex("男 "))