2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00

fix: make export encoding explicit

This commit is contained in:
18alantom 2022-01-14 12:58:27 +05:30
parent 34d7e5e9a2
commit ac0f98a2bf

View File

@ -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' });
});
/* ------------------------------