convert charset

This commit is contained in:
LittleBoy 2021-02-25 17:49:33 +08:00
parent 99fedaaca7
commit dcf99913a8

View File

@ -81,6 +81,8 @@ class childProcess {
});
// 监听程序得输出事件
me.childprocess.stdout.on('data', function (data) {
// convert charset
data = iconv.decode(data.toString(), 'gbk');
var result = null;
var json = '';
try {