(I have read most threads on this issue and tried various alternatives, but I still can't solve my problem).
I am generating ical calendar events from a php script to be sent via email. This works pretty much fine; ics attachments are received, they can be opened and used to create/modify/delete calendar events. I test mostly on my iphone.
The problem I have is to include line breaks in the DESCRIPTION field: - if I generate "\n " or "\r\n " (with a space after the \n), then the whole field is displayed but as a single line. - if I generate "\n " or "\r\n ", then the characters "\n" or "\r\n" are displayed.
Also, since I read that there might be problems with ;, I tried to insert a ; in the description: when escaped with a \, it displays as \; and when not escaped, it does not cause any problem.
Here's an example of an ics attachement
BEGIN:VCALENDAR
VERSION:2.0
METHOD:PUBLISH
BEGIN:VEVENT
ORGANIZER:MAILTO:noreplyClickNFly@aeroclub-uaca.org
DTSTART:20180924T080000Z
DTEND:20180924T090000Z
LOCATION:Uaca
245 Avenue Francis Tonner 06150 Cannes, France
TRANSP:OPAQUE
SEQUENCE:0
UID:20180919T190033-331242606@aeroclub-uaca.org
DTSTAMP:20180919T170033Z
SUMMARY:Baptême sur F-GJPJ
DESCRIPTION:Vol local\\r\\n PAX: John Doe (06.00.11.22.33)\\r\\n 5ème essai pour test calendrier
PRIORITY:5
CLASS:PUBLIC
STATUS:CONFIRMED
END:VEVENT
END:VCALENDAR
Any suggestion will be extremely welcome.
Thanks.