Charset Problems

Werner Koch wk at gnupg.org
Wed Dec 11 15:05:01 CET 2002


On Tue, 10 Dec 2002 22:49:35 +0000, Ramon Amat said:

> started to get strange for Marin_Z @___I assume that gpgme has
> problems to represent the passed content or does not support this type

gpgme uses utf-8 encoding.  Your application must take care to convert
it an approriate charset when displaying or entring a string.
GnuPG does this conversion and quotes invalid characters.

> gpg: please see http://www.gnupg.org/faq.html for more information
> pub  2048R/E739D21D 1999-12-11 Martin \x8ealoudek <martin_Z at email.cz>
> uid                            Martin \x8ealoudek <pmhzal at volny.cz>

Furthermore, I bet that this user ID is not correctly encoded.  PGP
for example does not get it right and does always assume Latin-1.
BTW, did anyone check whether PGP 8 fixes this.

IIRC, Miguel implemented heuristics in GPA to workaround bad encodings
right before displaying.


Shalom-Salam,

   Werner





More information about the Gnupg-devel mailing list