[Enigmail] Invalid UTF-8 Characters
Patrick Brunschwig
patrick at mozilla-enigmail.org
Fri Oct 24 05:06:44 PDT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Cristian KLEIN wrote:
> Patrick Brunschwig a scris:
>> Cristian KLEIN wrote:
>>>> Hi Cristian,
>>>>
>>>>> I'm the maintainer of the ro_RO locale for Enigmail. Recently I observed
>>>>> that the message for prefGood (
Semntur bun de la %S
) from
>>>>> enigmail.properties, which contains UTF-8 characters, is rendered
>>>>> incorrectly in Thunderbird running in Ubuntu Intrepid.
>>>>>
>>>>> More exactly,
is rendered as a box containing 0003. This message
>>>>> appears above a message in Thunderbird's main window, or when
>>>>> double-clicking the envelope icon.
>>>>>
>>>>> Interestingly, other messages, such as keyAndSigDateID (
Semnat în
) and
>>>>> securityInfo (
Informaii de securitate OpenPGP
) are rendered
>>>>> correctly.
>>>> usually a box showing the Unicode number only appears when the font used
>>>> doesn't contain the letter requested, instead the Unicode number is
>>>> shown.
>>>> However, without having checked, I doubt that the code of
is 0003.
>>>> In short: no idea.
>>> Am I really the only one experiencing this problem? I observed that
>>> beginPgpPart is also rendered distorted. Also, when I replied to this
>>> message while Enigmail was active, all the special characters (
î
>>> etc.) where distorted? So, I don't think its a simple localisation issue.
>>> Also, I have observed that the messages go to different objects
>>> (statusText in one case, errorObjMsg in another). Is there some kind of
>>> difference between the two?
>> Where precisely in the code? Both variables are used quite frequently.
>
> The following code is taken from components/enigmail.js:3207
>
> if (goodSignature) {
> errorMsgObj.value = trustPrefix + EnigGetString("prefGood",userId)
>
> I tried to play around a bit, deleting trustPrefix and changing
> „prefGood”. If I delete trustPrefix and add „ăâîșț” to prefGood, the
> message is rendered correctly.
The problem is actually that the string is decoded twice from UTF-8 to
the Mozilla-internal format. It's definitely a bug in Enigmail. What is
interesting though is that it doesn't occur on all my test messages; for
several messages, I see no problem at all, but for some the text is not
decoded properly.
- -Patrick
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEVAwUBSQG6U3cOpHodsOiwAQJ1Bgf+Lk3yPkaiK84m5UltMzX3pL4oUqUJSBeV
vdqioHWTxVRN9Bgu/rTAg+73NJ3zrV7jl2q7Du/NGjHkvyhfQhq5w8xO7uHstX2/
8DEAaSgYFG15D76XwzUT31027b7dnTzSKniBLwLrCDA/H0uTnx09K9FYM5Zn3dv+
02lqLbyoS1h/XyRkN6pznKQ0KfVT7ata1hWcelidKXjaF398W0MBraMkmnde7Mwc
j4TR2mNCrH2on1l1Bk3kIWOPXmV27qLHoYTqaQc1gm3DwkNeNjT02Z0d1EBEun6o
pIf9owpu8CMf3x+d22v5MzE9sRrL3QSfMyEo9yVBy2PNqyHEfK9g7w==
=T88O
-----END PGP SIGNATURE-----
More information about the Enigmail
mailing list