fix: 修复 SQL*Plus 脚本编码问题,确保正确处理输入脚本
This commit is contained in:
parent
7192d9ecd6
commit
5af2bdf41f
@ -143,7 +143,7 @@ function runSqlplus({ sqlplusPath, script, timeoutMs, encoding }) {
|
|||||||
}
|
}
|
||||||
resolve(output);
|
resolve(output);
|
||||||
});
|
});
|
||||||
child.stdin.end(script, "utf8");
|
child.stdin.end(iconv.encode(script, encoding || "gbk"));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user