Open Bug 1270837 Opened 8 years ago Updated 2 years ago

Missing charset for quoted-printable in address book export as vCard file

Categories

(Thunderbird :: Address Book, defect, P3)

45 Branch
x86_64
Windows 8.1

Tracking

(Not tracked)

People

(Reporter: hwo.nf, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; GWX:QUALIFIED; MASEJS; rv:11.0) like Gecko

Steps to reproduce:

Export address book as vCard file.


Actual results:


If you want to export contacts, which names include umlauts or the german ß, from address book to vCard, you get the following:

begin:vcard
fn;quoted-printable:J=C3=BCrgen Thi=C3=9Fen
n;quoted-printable:Thi=C3=9Fen;J=C3=BCrgen
version:2.1
end:vcard

In the name Jürgen Thißen are the umlaut and ß coded as UTF-8, without an indication of UTF-8. Since it is vCard format 2.1 and not 3.0 or higher, you do not know which encoding it is and cannot know that any other than ASCII is to use. Here I am missing the indication of charset, like this:

fn;CHARSET=UTF-8;quoted-printable:J=C3=BCrgen Thi=C3=9Fen

So the names would taken over in other programs correctly.

Without the indictaion of charset you cannot do an UTF-8 conversion per default, because:
I think it is possible to export binary data as quoted-printable to vCard. In this case it were a bad idea to do any conversion.

I know there are some reported similar bugs with quoted-printable, but not of this kind.



Expected results:

If all characteres are ASCII in the quoted-printable value no charset is required (I think). In all other cases I would expect it like this:

fn;CHARSET=UTF-8;quoted-printable:J=C3=BCrgen Thi=C3=9Fen
OS: Unspecified → Windows 8.1
Priority: -- → P3
Hardware: Unspecified → x86_64
Summary: Missing charset for quoted-printable → Missing charset for quoted-printable in address book export at vCard file
I think you are right, the charset is missing. This article suggests
http://stackoverflow.com/questions/34062710/how-to-include-charset-in-vcard-written-using-ez-vcard
that an ISO-8859 encoded "Müller" would look like this:
BEGIN:VCARD
VERSION:3.0
FN;ENCODING=quoted-printable;CHARSET=ISO-8859-1:Andr=E9 M=FCller
PRODID:ez-vcard 0.9.8
END:VCARD
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Missing charset for quoted-printable in address book export at vCard file → Missing charset for quoted-printable in address book export as vCard file
See Also: → 1376189
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.