[CalendarServer-users] How to handle comma and newline escaping propely

Gaurav Jain monkeyfdude at gmail.com
Mon Apr 11 12:07:07 PDT 2016


Hi Cyrus,

Thank you for the response.

I use https://github.com/libical/XbICalendar which in turn used libical for
iOS.

Do you think that is fine?

On Mon, Apr 11, 2016 at 12:03 PM, Cyrus Daboo <cdaboo at apple.com> wrote:

> Hi Gaurav,
>
> --On April 11, 2016 at 11:52:42 AM -0700 Gaurav Jain <
> monkeyfdude at gmail.com> wrote:
>
> I may have comma in my Event Summary.
>>
>> For eg. I can have a summary like
>>
>>
>> * "I , am , coming, tomo"*
>>
>> On receving side, I get back is
>>
>>
>> * "I \, am \, coming\, tomo"*
>>
>> What need to be do to get
>>
>> * "I , am , coming, tomo" *on readers client.
>>
>
> iCalendar data uses backslash encoding of certain characters as defined in
> the specification: <https://tools.ietf.org/html/rfc5545#section-3.3.11>.
>
> You should use a proper iCalendar library to generate and parse any
> iCalendar data - the library will take care of doing the proper backslash
> encode/decode for you.
>
> If you send data to the server that does not have the right syntax, the
> server may reject it or attempt to fix it (e.g. by adding back slashes)
> depending on how severe the issue is. Thus you should always use a proper
> iCalendar library when interacting with the server.
>
> --
> Cyrus Daboo
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-users/attachments/20160411/2f877fc5/attachment.html>


More information about the calendarserver-users mailing list