Charset of gpg --with-colon

Ingo Klöcker ingo.kloecker@epost.de
Mon Apr 14 01:41:02 2003


--Boundary-02=_pNfm+uG75flVft2
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Description: signed data
Content-Disposition: inline

On Sunday 13 April 2003 23:05, Daniel Luebke wrote:
> I just needed the output of
>
> gpg --list-keys --with-colon
>
> I saw that some keynames are printed in UTF-8 and some with a local
> charset. I thought I somewhere read that --with-colon uses UTF-8, but
> maybe I'm wrong.
>
> What is the correct charset? And why are there keys that are somewhat
> different. And more importantly: How can I correclty get the names

The user ids are output literally, i. e. exactly as they are stored in=20
the public key. According to the OpenPGP standard user ids must be=20
encoded in utf-8. But unfortunately keys created with older PGP version=20
(5 and 6, maybe also 7) encoded the user id in local encoding instead=20
of utf-8. AFAIK gpa has some heuristics to find out if utf-8 encoding=20
or another encoding was used.

Regards,
Ingo


--Boundary-02=_pNfm+uG75flVft2
Content-Type: application/pgp-signature
Content-Description: signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQA+mfNpGnR+RTDgudgRAng9AKCfJLgSRgnkSzXRcV2YJFuPFtheGwCdFz5c
n8dXjHNZdCfYrrGCFtZv4kk=
=ULHM
-----END PGP SIGNATURE-----

--Boundary-02=_pNfm+uG75flVft2--