[ #306500 ] ParserException in SonyEricsson W810i event
Date: 2006-12-11 13:10
Priority: 5
Submitted By: Nicolai Marck Ødum (webmarck)
Assigned To: Gilberto Migliavacca (gbmiglia)
Category: modules - foundation
State: Open
Summary: ParserException in SonyEricsson W810i event
Detailed description: This calendar event is from a "real life" phone and generates a exception when
parsed.
BEGIN:VCALENDAR
VERSION:1.0
BEGIN:VEVENT
DTSTART:20060525T090000Z
DTEND:20060525T090000Z
SUMMARY;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:Bredb=C3=A5nd tv muligheder=
vs 3+
CATEGORIES:MISCELLANEOUS
LAST-MODIFIED:20060628T154042Z
X-SONYERICSSON-DST:4
X-IRMC-LUID:000000000015
END:VEVENT
END:VCALENDAR
The problem is the newline in SUMMARY. I am not sure what the iCalendar
standard says about newlines but it's a fact that the phone sends a event that
contains one.
Date: 2006-12-15 16:47
Sender: harrie
Logged In: YES
user_id=3062
This is actually, the old x-vcalendar (see version 1.0).
However, the important part that applies here is the encoding.
The qouted printable way of formatting the value.
Date: 2006-12-11 16:43
Sender: mauro
Collegato: no
user_id=10570
This object is in agreement with the standard. A
Quoted-Printable-encoded property should contain a soft line
break in this form ("=\r\n") when it exceeds 76
characters.
If the property is not QP-encoded, a soft line break is
represented as "\r\n " (CR + LF + white space).
This line-folding problem has already been solved for the
new foundation module (v6).