what is the correct mime type for vcalendar

2019-07-29 09:34发布

I'm trying to create vcalendar for nfc tags,but what is the correct mime type? It should be something like this

WindowsMime:WriteTag.Text/vcalendar

WindowsMime:WriteTag.Text/x-vcalendar

but when I try to read the tag, the prompt message is "Sorry your phone can't recognise this type of file"

2条回答
淡お忘
2楼-- · 2019-07-29 10:12

The type for vCalendar seems to be text/x-vcalendar (source: original standard.)

For iCalendar (the newer format), the answer is text/calendar (source: RFC5545).

iCalendar is essentially v2.0 of the vCalendar format. If v2.0 of a format introduces a new MIME type for the new version of the format, it has never been clear to me whether the older versions of the format also get that new MIME type. The IANA registry doesn't help in clarifying things either.

查看更多
叛逆
3楼-- · 2019-07-29 10:19

The RFC mime type is text/calendar rather than text/vcalendar, does that work?

How are you creating the file? There is a BSD-licensed iCal class library for .NET called DDay.Ical

查看更多
登录 后发表回答