Search code examples
macosutf-8asciignupg

Can't import gnupg keys due to ascii conversion?


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?


Solution

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