Skip to content

Commit

Permalink
feat: add BOM to reports csv
Browse files Browse the repository at this point in the history
  • Loading branch information
rikuke committed Nov 17, 2023
1 parent 4f009cf commit 1872977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/shared/src/utils/file.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
}
Expand Down

0 comments on commit 1872977

Please sign in to comment.