From bee9422fad1bd8fdde3146854723c70b3b3d5c7e Mon Sep 17 00:00:00 2001 From: melohagan <101575380+melohagan@users.noreply.github.com> Date: Tue, 13 Feb 2024 10:46:13 +0000 Subject: [PATCH] Download CSV with UTF-8 support (#12990) * Download CSV with UTF-8 support * update account portal --- packages/account-portal | 2 +- packages/client/src/utils/buttonActions.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/account-portal b/packages/account-portal index cc12291732..ba40a46748 160000 --- a/packages/account-portal +++ b/packages/account-portal @@ -1 +1 @@ -Subproject commit cc12291732ee902dc832bc7d93cf2086ffdf0cff +Subproject commit ba40a467484963f8041144345469f4b395e31acc diff --git a/packages/client/src/utils/buttonActions.js b/packages/client/src/utils/buttonActions.js index ef529985b2..259128f6d4 100644 --- a/packages/client/src/utils/buttonActions.js +++ b/packages/client/src/utils/buttonActions.js @@ -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") }