vscode安裝arduino插件后輸出亂碼問題
2023/7/27??????點擊:
到下面的目錄下找到utils.js文件,轉(zhuǎn)到209行
C:\Users\Administrator\.vscode\extensions\vsciot-vscode.vscode-arduino-0.6.0-win32-x64\out\src\common
function spawn(command, args = [], options = {}, output) { return new Promise((resolve, reject) => { options.cwd = options.cwd || path.resolve(path.join(__dirname, "..")); const child = child_process.spawn(command, args, options); let codepage = "65001"; /***********************注釋這里的編碼設(shè)置,解決arduino編譯輸出亂碼問題 if (os.platform() === "win32") { codepage = getArduinoL4jCodepage(command.replace(/.exe$/i, ".l4j.ini"));
if (!codepage) { try { const chcp = child_process.execSync("chcp.com"); codepage = chcp.toString().split(":").pop().trim(); } catch (error) { outputChannel_1.arduinoChannel.warning(`Defaulting to code page 850 because chcp.com failed.\ \rEnsure your path includes %SystemRoot%\\system32\r${error.message}`); codepage = "850"; } } }*************************/
- 上一篇:元宇宙元宇宙三大技術(shù)階段數(shù)字孿生數(shù)字伴生數(shù)字原生 2023/8/10
- 下一篇:使用兩個IMU測量手臂或者腿關(guān)節(jié)角度 2023/4/24