http://bugzilla.moblin.org/show_bug.cgi?id=10485


pohly <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEEDINFO
            Summary|when decode from            |Ovi.com: when decode from
                   |Quoted-printable in Asian   |Quoted-printable in Asian
                   |utf8 chars, data become     |utf8 chars, data become
                   |broken                      |broken




--- Comment #7 from pohly <[email protected]>  2010-04-19 06:14:39 PST ---
Here's the data sent by Ovi.com:

BEGIN:VCALENDAR
VERSION:2.0
BEGIN:VEVENT
DTSTART:20100417T073000Z
DTEND:20100417T080000Z
LAST-MODIFIED:20100417T124516Z
PRIORITY:0
TRANSP:OPAQUE
DESCRIPTION:
SUMMARY;ENCODING=QUOTED-PRINTABLE;CHARSET=UTF-8:=E4=B8=80=E4=BA=8C=E4=B8=89=
 E5=9B=9B=E4=BA=94=E5=85=AD=E4=B8=83=E5=85=AB=\n=E4=B9=9D=E5=8D=81
LOCATION:
UID:991399...@tss
END:VEVENT
END:VCALENDAR

The data sent by Ovi.com is invalid because it uses ENCODING=QUOTED-PRINTABLE,
which is not specified for iCalendar 2.0. vCalendar 1.0 used to have it, but it
has been superseded by BASE64.

In theory, QUOTED-PRINTABLE might have been added later on as "Some other IANA
registered iCalendar encoding type", but I don't find it. I checked via:
http://www.iana.org/assignments/icalendar/icalendar.xhtml

CHARSET is also not part of iCalendar 2.0.

Even if Ovi.com was using vCalendar 1.0, the line break would still be wrong.
The trailing = in the first line clearly is a soft line break according to RFC
2045, so the Synthesis parser correctly interprets the next line as starting
with " E5".

I'm also unsure about the \n in the text. I suspect that a line break has to be
encoded differently with QUOTED-PRINTABLE.

I was about to suggest that you work around these issues by forcing the server
to use vCalendar 1.0, but I suspect that you'll run into similar issues.

Nevertheless, it is worth a try. You can do that by appending the string
":text/x-vcalendar" to the type in your config.in files for calendar, todo, and
"calendar+todo" - see .config/syncevolution/peers/ovi/sources/*/config.ini.

Does that help? You should see
  BEGIN:VCALENDAR
  VERSION:1.0
in the data coming from Ovi.com as a result.

-- 
Configure bugmail: http://bugzilla.moblin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching someone on the CC list of the bug.
_______________________________________________
Syncevolution-issues mailing list
[email protected]
http://lists.syncevolution.org/listinfo/syncevolution-issues

Reply via email to