Download CSV with UTF-8 support (#12990)

* Download CSV with UTF-8 support

* update account portal
This commit is contained in:
melohagan 2024-02-13 10:46:13 +00:00 committed by GitHub
parent 2fe6dbe8a5
commit bee9422fad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

@ -1 +1 @@
Subproject commit cc12291732ee902dc832bc7d93cf2086ffdf0cff
Subproject commit ba40a467484963f8041144345469f4b395e31acc

View File

@ -341,7 +341,10 @@ const exportDataHandler = async action => {
format: action.parameters.type,
columns: action.parameters.columns,
})
download(data, `${selection.tableId}.${action.parameters.type}`)
download(
new Blob([data], { type: "text/plain" }),
`${selection.tableId}.${action.parameters.type}`
)
} catch (error) {
notificationStore.actions.error("There was an error exporting the data")
}