From 6a0577a387410763a28184b5f30d376e73fcb9b4 Mon Sep 17 00:00:00 2001 From: Joran Dirk Greef Date: Thu, 2 Nov 2017 12:43:00 +0200 Subject: [PATCH] Breaking: Windows: Set code page of command batch script to UTF-8 --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 2723b36..5dca4d3 100644 --- a/index.js +++ b/index.js @@ -557,6 +557,8 @@ function WindowsWriteCommandScript(instance, end) { } var script = []; script.push('@echo off'); + // Set code page to UTF-8: + script.push('chcp 65001>nul'); script.push('cd "' + cwd + '"'); script.push(instance.command); script = script.join('\r\n');