From 607e304c50631b41a49cda74d37e45613891992a Mon Sep 17 00:00:00 2001 From: minie4 Date: Mon, 28 Aug 2023 11:51:36 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Fix=20timetable=20and=20profile?= =?UTF-8?q?=20export=20charset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/settings/ProfileSettings.vue | 2 +- src/views/settings/TimetableSettings.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/settings/ProfileSettings.vue b/src/views/settings/ProfileSettings.vue index 4e4fc2d..7079f9f 100644 --- a/src/views/settings/ProfileSettings.vue +++ b/src/views/settings/ProfileSettings.vue @@ -51,7 +51,7 @@ function importProfile(event) { function exportProfile(profile) { download( - JSON.stringify(profile), + new Blob(["\ufeff", JSON.stringify(profile)]), `profile-${profile.id}.json`, "application/json", ); diff --git a/src/views/settings/TimetableSettings.vue b/src/views/settings/TimetableSettings.vue index 599cb8b..7fb2c10 100644 --- a/src/views/settings/TimetableSettings.vue +++ b/src/views/settings/TimetableSettings.vue @@ -51,7 +51,7 @@ function importTimetable(event) { function exportTimetable(timetable) { download( - JSON.stringify(timetable), + new Blob(["\ufeff", JSON.stringify(timetable)]), `timetable-${timetable.id}.json`, "application/json", );