We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40b1cbb commit 40a9cc5Copy full SHA for 40a9cc5
src/components/dialogs/network-modifications/tabular/use-filter-csv-generator.ts
@@ -138,7 +138,8 @@ export const useFilterCsvGenerator = (props: UseFilterCsvGeneratorProps) => {
138
}, [equipmentType, dialogMode]);
139
140
const downloadCsvFile = useCallback(({ content, filename }: FileDownloadParams): void => {
141
- const blob = new Blob([content], { type: 'text/csv;charset=utf-8;' });
+ const bom = '\uFEFF'; // UTF-8 BOM to ensure proper encoding detection in Excel
142
+ const blob = new Blob([bom + content], { type: 'text/csv;charset=utf-8;' });
143
const url = URL.createObjectURL(blob);
144
const link = document.createElement('a');
145
0 commit comments