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:
parent
34d7e5e9a2
commit
ac0f98a2bf
@ -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' });
|
||||
});
|
||||
|
||||
/* ------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user