Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a comment character for iCal files (.ics)

I looked through the iCal spec and wasn't able to find anything at all. I've searched via Google quite a few times over the past few days as well.

I've found a few people that are using a server-side language (mostly PHP) to read an .ics and remove extra characters, so this leads me to believe they are not supported because they're removing extra markup.

Is it possible to include comments in an .ics file? I'm not talking about the Component Property.

EDIT: After more searching, I've come to the conclusion that anything outside the BEGIN:VCALENDAR and END:VCALENDAR might be ignored, thus making it a comment. I exported one of my Google Calendars, made some additions by hand, and uploaded it back with no apparent issues. Any thoughts or experiences on this idea?

EDIT 2: Returning to this much much later. I believe the best route would be to define your own custom property starting with X- as somewhat suggested below. If the tool reading the file does not recognize it, it will be ignored. So the specific approach would be to make sure you pick a name that is not likely to be recognized.

like image 828
soycharliente Avatar asked Dec 19 '12 19:12

soycharliente


People also ask

How do I insert a line break in an ICS file?

The correct way to do it is to use "\n" for line breaks.

Is ics the same as iCal?

ics format, also known as iCalendar, is a common bond between these and many other calendar applications, and no conversion is required. Calendar sharing through iCalendar is built in to the current versions of both Outlook and iCal.


1 Answers

you could add a x-comment property and have its value being your comment

like image 183
Auberon Vacher Avatar answered Oct 13 '22 01:10

Auberon Vacher