From 93d1dd40ed184427cdb9810d82faba238debff4d Mon Sep 17 00:00:00 2001 From: mostafa H Date: Fri, 19 Jun 2020 15:44:53 +0430 Subject: [PATCH] fix: add utf8-support. --- graph-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph-editor.js b/graph-editor.js index f4ae666..b2eca11 100644 --- a/graph-editor.js +++ b/graph-editor.js @@ -365,7 +365,7 @@ window.onload = function() function updateSvgDownloadLink() { var rawSvg = new XMLSerializer().serializeToString(d3.select("#canvas svg" ).node()); - d3.select("#downloadSvgButton").attr('href', "data:image/svg+xml;base64," + btoa( rawSvg )); + d3.select("#downloadSvgButton").attr('href', "data:image/svg+xml;base64," + btoa(unescape(encodeURIComponent( rawSvg )))); } var openConsoleWithCypher = function (evt)