Encoding newlines in iCal files

后端 未结 7 1830
别那么骄傲
别那么骄傲 2020-12-14 05:41

I\'m trying to figure out how to encode newlines in the DESCRIPTION part of an iCal file in such a way that they will import properly into Outlook, Google Calendar and the A

7条回答
  •  鱼传尺愫
    2020-12-14 06:10

    According to this RFC:

    Content lines are delimited by a line break, which is a CRLF sequence (CR character followed by LF character).

    So you should use \r\n. I used this in strings without additional backslash escaping.

提交回复
热议问题