I have below mentioned line in html
< a href="data:text/calendar;charset=utf8,BEGIN:VCALENDAR%0AVERSION:2.0%0ABEGIN:VEVENT%0AURL:https://www.example.com%0ADTSTART:20130615T133000Z%0ADTEND:20130615T173000Z%0ASUMMARY:Sum%0ADESCRIPTION:Desc%0ALOCATION:Loc%0AEND:VEVENT%0AEND:VCALENDAR">AddToCalendar < /a>
On clicking this line generates .ics file in Chrome and Firefox browser, but it fails in Safari and IE.
In safari it downloads a file called "unknown" In IE it opens a new tab saying "The webpage cannot be displayed"
Please help me fixing this.
Content of generated ics file is below
BEGIN:VCALENDAR
VERSION:2.0
BEGIN:VEVENT
URL:https://www.example.com
DTSTART:20130615T133000Z
DTEND:20130615T173000Z
SUMMARY:Sum
DESCRIPTION:Desc
LOCATION:Loc
END:VEVENT
END:VCALENDAR
But the expected result is .ics file
Does anyone knowthe reason?