Skip to content

Commit 1c85078

Browse files
authored
Merge pull request #5499 from ValentinnDimitroff/download-csv-enhance
Extended downloadCSV helper with type paramater
2 parents 009b052 + fe4bab7 commit 1c85078

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ra-core/src/export/downloadCSV.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export default (csv, filename) => {
22
const fakeLink = document.createElement('a');
33
fakeLink.style.display = 'none';
44
document.body.appendChild(fakeLink);
5-
const blob = new Blob([csv], { type: 'text/csv' });
5+
const blob = new Blob([csv], { type: 'text/csv;charset=utf-8' });
66
if (window.navigator && window.navigator.msSaveOrOpenBlob) {
77
// Manage IE11+ & Edge
88
window.navigator.msSaveOrOpenBlob(blob, `${filename}.csv`);

0 commit comments

Comments
 (0)