If vcard charset is set to iso-8859-1 TB don't display umlaut correctly in vcard



Mail Window Front End
12 years ago
3 years ago


(Reporter: Andreas Breuer, Unassigned)


(Depends on: 1 bug, {intl})

Dependency tree / graph

Firefox Tracking Flags

(Not tracked)


(Whiteboard: testcase comment 9)



12 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8) Gecko/20051111 Firefox/1.5
Build Identifier: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8) Gecko/20051111 Firefox/1.5

If you send a Mail with vcard (with umlaut) and the charset for the vcard is set to iso-8859-1 thunderbird don't able to display the umlaut, which is suprising because thunderbird is able to display the umlauts correct if iso-8859-1 is set for the mail body.

example, if you got mail with mail body:
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: QUOTED-PRINTABLE
Content-disposition: inline

--> Thunderbird able to display the umlaut correct !

if you got an vcard with:
Content-type: text/x-vcard; name=kg.vcf; charset=iso-8859-1
Content-transfer-encoding: BASE64
Content-disposition: attachment; filename=kg.vcf
Content-description: Card for <kg@Germany.Sun.COM>

--> Thunderbird is not able to display the unlaut correct, maybe this
    is related with the transfer encoding too.

Reproducible: Always

Steps to Reproduce:
1. send Mail with vcard and iso-8859-1 charset for vcard
2. receive Mail with Thunderbird
3. vcard umlaut broken

Actual Results:  
Thunderbird unable to display umlaut

Expected Results:  
Thunderbird should display umlaut if charset ist set to a valid value

Comment 1

12 years ago
We're talking about which Thunderbird version? Do you know which mail client sent this mail?

Comment 2

12 years ago
I've test this with Thunderbird 1.0.6, but this should broken in all Thunderbird Versions. The Send - Mail Client is an WebMail Application, where you are able to Attache a vcard. The WebMail Application will attach the vcard with the mention charset iso-8859-1.

Comment 3

12 years ago
Please upgrade to 1.5 to see if it's still a problem.

Comment 4

12 years ago
Repoter: Can you try with Thunderbird 1.5 if you also see the problem there?

Comment 5

12 years ago

sorry for the delay, Thunderbird 1.5 also not able to display the Umlaut, please
find below the source of the mail:

- - - - - - -

Date: Thu, 23 Mar 2006 14:47:46 +0000 (GMT)
From: sender@domain.com
Subject: test with webmail
To: receipient@domain.com
Message-id: <f75683393f04.4422b512@domain.com>
MIME-version: 1.0
X-Mailer: Sun Java(tm) System Messenger Express 6.2-5.05 (built Feb 16 2006)
Content-type: multipart/mixed; boundary="Boundary_(ID_5ZWhh0TTafgmA33P+1DkbQ)"
Content-language: de
X-Accept-Language: de
Priority: normal
Original-recipient: rfc822;receipient@domain.com

This is a multi-part message in MIME format.

Content-type: multipart/alternative;

This is a multi-part message in MIME format.

Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: QUOTED-PRINTABLE
Content-disposition: inline


und hoffentlich vcard

Content-type: text/html; charset=iso-8859-1
Content-transfer-encoding: QUOTED-PRINTABLE
Content-disposition: inline

=D6=C4=C4=DC=DC=D6=DC=C4=D6=C4<br><br>und hoffentlich vcard<br>


Content-type: text/x-vcard; name=Peter_Hotter.vcf; charset=iso-8859-1
Content-transfer-encoding: BASE64
Content-disposition: attachment; filename=sender.vcf
Content-description: Card for <sender@domain.com>



Comment 6

12 years ago
Ok, ther is a great problem with encoding. Ie my Vcard is encoded fn;quoted-printable:Moritz "Morty" Str=C3=BCbe
it should be
fn;quoted-printable:Moritz "Morty" Str=FCbe
ü = FC not C3BC!
If TB gets a a correct encoded Vcard it can't read it. This is IMHO a major bug which schould be able to be fixed quite easy for someone knowing the code. But I'm not shure if this is the same problem. In case I'll file a new bug. (Couldn't find one.) 
BTW: Outlook does it right or just uses "ü".
BTW2: Shouldn't the component be Address Book?
(Using TB 1.5)

Comment 7

12 years ago
Moritz: It all depends on the charset of the vCard that is sent. The first one is UTF-8 encoding, the second one ISO-8859-something.

Comment 8

12 years ago
we do have the same problem. 
Please see the extract of an mail:

------- snip ------- snip ----------------
This is a multi-part message in MIME format.

Content-Type: text/plain;
Content-Transfer-Encoding: quoted-printable


J=FCrgen M=FCller

Content-Type: text/x-vcard;
Content-Transfer-Encoding: base64
Content-Description: =?iso-8859-1?Q?M=FCller_J=FCrgen_=28Gesch=E4ftlich=29=2Evcf?=
Content-Disposition: attachment;

base64 encoded text deleted


------- snip ------- snip ----------------

The vCard is not displayed correctly.
The above Juergen Mueller is displayed as: M&#65533;ller J&#65533;rgen

The encoded vCard contains the "ue" from the name as ISO-8859-1 character 
(not as quoted-printable).


P.S.: Thunderbird on Win32

Comment 9

12 years ago
I have this error in TB version (20060516) on Windows XP as well. It seems to me the problem is rather that TB does not decode the quoted-printable in vcards. You can reproduce it as follows:

Download the file http://www.math.su.se/~jesper/test.vcf and attach it to a message written in TB. Send it to yourself.

To me it seems the source is correct. So Thunderbird produces the right thing when sending the mail, but displays it incorrectly. Also, when the vcard is stored in the Address Book, the quoted-printable chars are not decoded.

The source of the mail is given below (some headers have been replaced by ":"). Best regards, Jesper Carlstrom

From - Tue Jun 06 10:12:12 2006
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
User-Agent: Thunderbird (Windows/20060516)
MIME-Version: 1.0
Subject: Test of vcard
Content-Type: multipart/mixed;

This is a multi-part message in MIME format.
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

Please have a look at the attached vcard. The =E5 and =E4 are (correctly)=

encoded in quoted-printable by Thunderbird but this is not understood by
Thunderbird when displayed or saved. The vcard was attached as a file.
The file can be downloaded from http://www.math.su.se/~jesper/test.vcf.

Jesper Carlstr=F6m

Content-Type: text/x-vcard;
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;

FN:=C5ke P=E4rongren


Comment 10

10 years ago
There are other bugs, like bug 336400, but I'm not finding any older and confirmed except the following...

David, are these related?  bug 91383, bug 341059,  bug 149771

Tammer sees this in Thunderbird ...
 The name is displayed like: " M�ller J�rgen"
 The name should read "Müller Jürgen"

there is also bug 298185
Assignee: mscott → nobody
Component: General → Mail Window Front End
Keywords: intl
OS: Linux → All
QA Contact: general → front-end
Hardware: PC → All
Version: unspecified → 1.0

Comment 11

10 years ago
bug 91383 definitely looks related, if not the same. But I'm pretty sure the v-card code does handle quoted printable, but it may have to be specified in the v-card itself? I'm not sure...


10 years ago
Duplicate of this bug: 336400


10 years ago
Blocks: 370090

Comment 13

8 years ago
could use a test in v3

Jesper writes "there is still an error. Now the file is not encoded as quoted-printable but sent in 8-bit, but it is still not shown correctly in Thunderbird I can read the characters in the source, but not as displayed in Thunderbird."
Depends on: 91383
Ever confirmed: true
Whiteboard: testcase comment 9

Comment 14

3 years ago
Vcard Version 4.0 RFC6350 dated Aug 2011 is at https://tools.ietf.org/html/rfc6350

3.1. Charset
   The charset (see [RFC3536] for internationalization terminology) for vCard is UTF-8 as defined
   in RFC3629].  There is no way to override this.  It is invalid to specify a value other than 
   "UTF-8" in the "charset" MIME parameter (see Section 10.1).
from Sec 10.1 
   "charset": as defined for text/plain [RFC2046]; encodings other than UTF-8 [RFC3629] MUST NOT be used.

I am citing the RFC because it has bearing on how we validate a bug during triage. Getting samples of vcards while the reporter still has one can help clearup sender errors.
You need to log in before you can comment on or make changes to this bug.