Skip to content

Commit

Permalink
refactor(web-react): add encoder to support non-ASCII characters csv…
Browse files Browse the repository at this point in the history
… download (#10496)
  • Loading branch information
PeamThom authored Jun 28, 2024
1 parent cf3ccf0 commit 71e79ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datahub-web-react/src/app/search/utils/csvUtils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export function downloadFile(data: string, title: string) {
const blobx = new Blob([data], { type: 'text/plain' }); // ! Blob
const blobx = new Blob([data], { type: 'text/plain;chartset=utf-8' }); // ! Blob
const elemx = window.document.createElement('a');
elemx.href = window.URL.createObjectURL(blobx); // ! createObjectURL
elemx.download = title;
Expand Down

0 comments on commit 71e79ba

Please sign in to comment.