diff --git a/lib/main.js b/lib/main.js index d359b95..b022235 100644 --- a/lib/main.js +++ b/lib/main.js @@ -60,7 +60,7 @@ function run() { } let body; if (path) { - body = fs_1.readFileSync(path); + body = fs_1.readFileSync(path, 'utf-8'); } else { body = message; diff --git a/src/main.ts b/src/main.ts index d254c3f..7915d69 100644 --- a/src/main.ts +++ b/src/main.ts @@ -35,7 +35,7 @@ async function run() { let body; if (path) { - body = readFileSync(path); + body = readFileSync(path, 'utf-8'); } else { body = message; }