From ac0f98a2bf7054d75d1dd4c99d684200fd0a4227 Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Fri, 14 Jan 2022 12:58:27 +0530 Subject: [PATCH] fix: make export encoding explicit --- src/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/background.js b/src/background.js index c207db84..b7ae2243 100644 --- a/src/background.js +++ b/src/background.js @@ -199,7 +199,7 @@ ipcMain.handle(IPC_ACTIONS.SAVE_HTML_AS_PDF, async (event, html, savePath) => { }); ipcMain.handle(IPC_ACTIONS.SAVE_DATA, async (event, data, savePath) => { - return await fs.writeFile(savePath, data); + return await fs.writeFile(savePath, data, { encoding: 'utf-8' }); }); /* ------------------------------