摘要: // https://stackoverflow.com/questions/21109011/javascript-unicode-string-chinese-character-but-no-punctuation // 删除标点符号 console.log( "hello! 42 我的中文不 阅读全文
posted @ 2022-01-12 20:25 程序媛李李李李蕾 阅读(79) 评论(0) 推荐(0) 编辑
摘要: windows 乱码之 gbk 与 cp936 在使用 node 子进程执行 cmd 命令时, 获取到的输出是乱码的. const { execSync } = require('child_process') const res = execSync(`echo nihao 你好`) consol 阅读全文
posted @ 2022-01-12 20:21 程序媛李李李李蕾 阅读(3329) 评论(0) 推荐(0) 编辑