Closed thet closed 11 years ago
The same here:
import icalendar
event = icalendar.Event()
event['location'] = 'Moscow, city'
print event.to_ical()
event['location'] = icalendar.vText('Moscow, city')
print event.to_ical()
Result:
BEGIN:VEVENT
LOCATION:Moscow, city
END:VEVENT
BEGIN:VEVENT
LOCATION:Moscow, city
END:VEVENT
according to RFC 5545, chapter 3.3.11, these characters should be escaped:
ESCAPED-CHAR = ("\\" / "\;" / "\," / "\N" / "\n")
when adding doing the following, the comma isn't escaped: