From 1872977b1e38270aaa5a63f632a5b7bb3b034ffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Riku=20Kestila=CC=88?= Date: Fri, 17 Nov 2023 11:43:13 +0200 Subject: [PATCH] feat: add BOM to reports csv --- frontend/shared/src/utils/file.utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/shared/src/utils/file.utils.ts b/frontend/shared/src/utils/file.utils.ts index 48ad2fffd4..d6b2f0a355 100644 --- a/frontend/shared/src/utils/file.utils.ts +++ b/frontend/shared/src/utils/file.utils.ts @@ -11,7 +11,7 @@ export const downloadFile = (data: string, type: ExportFileType): void => { if (type === 'csv') { // eslint-disable-next-line security/detect-non-literal-fs-filename - fileDownload(data, `hl ${dateString}.csv`, 'text/csv;charset=utf-8'); + fileDownload(data, `hl ${dateString}.csv`, 'text/csv;charset=utf-8-sig', '\uFEFF'); } else { fileDownload(data, `hl ${dateString}.zip`); }