const { exec } = require("child_process");
const iconv = require("iconv-lite");
exec("clip").stdin.end(iconv.encode("ABC汉语xyz中文", "gbk"));
01-17
999
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
05-22
const { exec } = require("child_process");
const iconv = require("iconv-lite");
exec("clip").stdin.end(iconv.encode("ABC汉语xyz中文", "gbk"));