From e9b7b1adbe7b8b4a6eb2bd59ed686a2486403e91 Mon Sep 17 00:00:00 2001 From: Peyman Ahmadian Date: Mon, 2 Oct 2023 11:48:24 +0330 Subject: [PATCH] fix create file for unicode text --- icsFormatter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icsFormatter.js b/icsFormatter.js index c66d7a8..0c54881 100644 --- a/icsFormatter.js +++ b/icsFormatter.js @@ -109,7 +109,7 @@ var icsFormatter = function() { ext = (typeof ext !== 'undefined') ? ext : '.ics'; filename = (typeof filename !== 'undefined') ? filename : 'calendar'; var calendar = calendarStart + SEPARATOR + calendarEvents.join(SEPARATOR) + calendarEnd; - window.open( "data:text/calendar;charset=utf8," + escape(calendar)); + window.open( "data:text/calendar;charset=utf8," + encodeURIComponent(calendar)); } }; };