From 26900acef1473b22bbf82c5bcca0df0cbb8d0d51 Mon Sep 17 00:00:00 2001 From: SKlimov Date: Mon, 7 Dec 2020 12:38:59 +0300 Subject: [PATCH] Update utils.ts --- workbench/public/utils/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workbench/public/utils/utils.ts b/workbench/public/utils/utils.ts index e7dafde799..a59e404330 100644 --- a/workbench/public/utils/utils.ts +++ b/workbench/public/utils/utils.ts @@ -84,7 +84,7 @@ export function scrollToNode(nodeId: string): void { // Download functions export function onDownloadFile(data: any, fileFormat: string, fileName: string) { - const encodedUri = encodeURI(data); + const encodedUri = encodeURIComponent(data); const content = 'data:text/'+fileFormat+';charset=utf-8,' + encodedUri; const link = document.createElement("a"); link.setAttribute('href', content);