27

I have a problem importing my gpg keys onto my macbook pro. This is the output:

pg: conversion from `utf-8' to `US-ASCII' failed: Illegal byte sequence
gpg: key 5AE36741: public key "Micha\xc5\x82 Adamczyk <michal.anks@gmail.com>" imported

After that key is imported but unusable by i.e. enigmail. Any ideas on how can i fix this?

1 Answers1

55

I had a similar problem and solved it by adding charset utf-8 to ~/.gnupg/gpg.conf.

foolip
  • 1,604
  • 14
  • 11
  • 5
    That should be the default. – Pablo Fernandez Aug 22 '16 at 18:45
  • 2
    @foolip So, how will this interact with other people reading my key? Will they have to turn on UTF-8 as well? – Dorian Feb 22 '17 at 06:42
  • @Dorian no, it's just some error on the ASCII conversion on macOS when displaying as text. On Debian it displayed the same key correctly, without setting the charset encoding. – goetz Jan 06 '19 at 18:32