aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2022-07-18 19:31:55 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2022-07-18 19:31:55 +0000
commit10403f79dd3a4aff54d11de40f2d55aa44774ce0 (patch)
treeedc1908d121afc5a90fe27aa485cb43b3b1a53e4 /src
parente5a32eeef7b88442dcffb62520fc27f929970479 (diff)
parent2474f155d2ce2b072bef37790f2dc4049b22d49a (diff)
Merge branch 'develop' into 'migrate/ruffle'
# Conflicts: # package.json
Diffstat (limited to 'src')
-rw-r--r--src/services/export_import/export_import.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/services/export_import/export_import.js b/src/services/export_import/export_import.js
index ac67cf9c..7fee0ad3 100644
--- a/src/services/export_import/export_import.js
+++ b/src/services/export_import/export_import.js
@@ -1,9 +1,11 @@
+import utf8 from 'utf8'
+
export const newExporter = ({
filename = 'data',
getExportedObject
}) => ({
exportData () {
- const stringified = JSON.stringify(getExportedObject(), null, 2) // Pretty-print and indent with 2 spaces
+ const stringified = utf8.encode(JSON.stringify(getExportedObject(), null, 2)) // Pretty-print and indent with 2 spaces
// Create an invisible link with a data url and simulate a click
const e = document.createElement('a')