Bug 68350 - UTF-8 strings corruption upon vCard export
Summary: UTF-8 strings corruption upon vCard export
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kab3
Classification: Unmaintained
Component: general (show other bugs)
Version: 3.1
Platform: Mandrake RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Tobias Koenig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-16 09:27 UTC by Viktor
Modified: 2009-08-05 16:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Viktor 2003-11-16 09:27:12 UTC
Version:           3.1 (using KDE 3.1.3)
Installed from:    Mandrake Linux Cooker i586 - Cooker
Compiler:          gcc version 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)
OS:          Linux (i686) release 2.4.22-10mdksmp

When exporting contacts as vCard 3.0 files (*.vcf), whether individually or several at once, a corruption of UTF-8 stings has been encountered in the vcf files obtained. This happened with contacts belonging to four pre-defined categories consisting of non-ASCII characters. One of non-ASCII characters represented by a two-byte sequence in UTF-8 (the 60th and the 61st bytes) was instead written to as a four-byte sequence with the fourth byte being a line break. The resulting vcf file has a line break in the “CATEGORIES:” line, with the remainder of the string continuing on the next line.

The system locale is UTF-8.
Comment 1 Tobias Koenig 2003-11-16 20:06:47 UTC
Subject: Re:  New: UTF-8 strings corruption upon vCard export

On Sun, Nov 16, 2003 at 08:27:12AM -0000, Viktor wrote:
> Version:           3.1 (using KDE 3.1.3)
> Installed from:    Mandrake Linux Cooker i586 - Cooker
> Compiler:          gcc version 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)
> OS:          Linux (i686) release 2.4.22-10mdksmp
Hi Viktor,

> The system locale is UTF-8.
This should be fixed now in CVS HEAD with the new vCard-Parser, at least
I can't reproduce it here.

Ciao,
Tobias
Comment 2 Dotan Cohen 2008-10-14 01:11:38 UTC
This bug is present in the Kontact provided with KDE 4.1.2. This is the vcard, as exported from Kaddressbook and opened in Kate:

BEGIN:VCARD
FN;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:=D7=90=D7=90=D7=99=D7=A9 =D7=91=
 D7=93=D7=99=D7=A7=D7=94
N;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:=D7=91=D7=93=D7=99=D7=A7=D7=94;=D
 7=90=D7=90=D7=99=D7=A9;;;
NOTE;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:=D7=A9=D7=95=D7=A8=D7=94 =D7=A
 8=D7=90=D7=A9=D7=95=D7=A0=D7=94.\n=D7=94=D7=A9=D7=95=D7=A8=D7=94 =D7=94=D7=
 A9=D7=A0=D7=99=D7=94 =D7=9B=D7=\n=9C =D7=9B=D7=9A =D7=90=D7=A8=D7=95=D7=9B=
 D7=94 =D7=A9=D7=94=D7=99=D7=94=\n =D7=A2=D7=9C=D7=95=D7=9C=D7=94 =D7=9C=D7=
 92=D7=9C=D7=95=D7=A9.\n=D7=A9=D7=95=D7=A8=D7=94 =D7=A9=D7=9C=D7=99=D7=A9=D7
 =99=D7=AA.\n
UID:U9f5DBG3zU
VERSION:2.1
END:VCARD


As can clearly be seen, there are line breaks in the middle of quoted-printable data.
Comment 3 Dotan Cohen 2008-10-15 21:36:09 UTC
This bug seems to be related to bug #172764.
Comment 4 Tobias Koenig 2009-08-05 16:01:32 UTC
The development of the old KAddressBook will be discontinued for KDE 4.4.
Since the new application has the same name, but a completly new code base we close all bug reports against the old version and ask the submitters to resend there reports against the new product.