what is the correct mime type for vcalendar

人盡茶涼 提交于 2019-12-11 09:37:57

问题


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"


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/14746872/what-is-the-correct-mime-type-for-vcalendar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!