Bug 91393

Summary: inline vCard attachments have incorrect character encoding
Product: [Applications] kmail Reporter: Tristan Miller <psychonaut>
Component: addressbookAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: anderslund, gappy1502, kde, mikmach, tuju
Priority: NOR    
Version: 1.7.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Message exhibiting described bug
Screenshot of KMail showing improperly displayed vCard
Broken encoding of vcard

Description Tristan Miller 2004-10-15 16:49:06 UTC
Version:           1.7.1 (using KDE KDE 3.3.0)
Installed from:    SuSE RPMs

When a user adds a vCard file to a message as an attachment, it is given the same encoding as the rest of the message. (See attached example.)  However, KMail should not make this assumption.  According to RFC 2426, vCards can have any character encoding, though UTF-8 is preferred; the character set must be specified in the Content-Type MIME header field.  vCards produced by KAddressbook are UTF-8 encoded by default.

To fix this bug, when a user attaches a vCard, KMail should by default specify the encoding as UTF-8, but allow the user to change this if necessary in the attachment pane.
Comment 1 Tristan Miller 2004-10-15 16:55:10 UTC
Created attachment 7890 [details]
Message exhibiting described bug
Comment 2 Tristan Miller 2004-10-15 16:58:27 UTC
Created attachment 7891 [details]
Screenshot of KMail showing improperly displayed vCard

Here's a screenshot showing KMail viewing the message in the previous
attachment.  Note that the vCard attachment is displayed as if it were
ISO-8859-15-encoded instead of UTF-8 encoded.
Comment 3 Tom Albers 2004-10-17 17:20:18 UTC
Problem confirmed.
Comment 4 Mikolaj Machowski 2004-11-07 11:42:38 UTC
Configureming for 1.11 CVS-HEAD
Comment 5 Mikolaj Machowski 2004-11-07 11:47:24 UTC
Created attachment 8207 [details]
Broken encoding of vcard

Notice also wrong image - bad rescaling instead of use bigger version.
Comment 6 Thomas McGuire 2007-03-27 20:59:12 UTC
*** Bug 143462 has been marked as a duplicate of this bug. ***
Comment 7 Pino Toscano 2007-04-21 00:01:40 UTC
*** Bug 65236 has been marked as a duplicate of this bug. ***
Comment 8 Thomas McGuire 2007-07-20 16:31:35 UTC
*** Bug 148048 has been marked as a duplicate of this bug. ***
Comment 9 Tristan Miller 2009-04-25 23:36:08 UTC
Fixed in KDE 4.2.2.