Hi, I have a slightly annoying problem.

I'm from Sweden and I occasionally communicate with other swedish people
using pgp and I've stumbled upon this problem:
If I encrypt a message containg any of the swedish letters "åÅäÄöÖ"
using inline format everythings works just fine but when I encrypt it in
the standard way, i.e sending the encrypted message as attachment the
swedish letters get messed up when the recipient decrypts the message
(not in mutt as for as I know).

For example if I encrypt the message "Secret åäö ÅÄÖ" and send it to
myself and then decrypt it in mutt it shows exactly;

  headers & stuff then:
  "[-- The following data is PGP/MIME encrypted --]

    Secret åäö ÅÄÖ

  [-- End of PGP/MIME encrypted data --]"

but if I save the actual msg.asc file and decrypt it manually from
commandline I get

  "Content-Type: text/plain; charset=iso-8859-1
   Content-Disposition: inline
   Content-Transfer-Encoding: quoted-printable

   Secret =E5=E4=F6 =C5=C4=D6"

And this apparently what any recipient gets upon decryption. Any swedish
char in terminal shows up just fine on my system (debian) and my locale
is LANG=en_US.UTF-8 and I don't have any other problems with Swedish
chars as far as I know. But something goes wrong.

I basically have two questions,

1. How to fix this?
2. Why doesn't this problem show up when encrypting inline style?

I'm sorry if this is stupid, I know very little about charsets and
encodings.

My cryptopart of .muttrc looks like this:

  #gpg
  set pgp_use_gpg_agent = no

  set pgp_sign_as = 616BB08C
  set pgp_timeout = 3600
  set crypt_autosign = yes
  set crypt_replyencrypt = yes

  set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch 
--output - %f"
  set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f"
  set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output 
- %f"
  set pgp_sign_command="gpg --no-verbose --batch  --output - --passphrase-fd 0 
--armor --detach-sign \
  --textmode %?a?-u %a? %f"
  set pgp_clearsign_command="gpg --no-verbose --batch --output - 
--passphrase-fd 0 --armor \
  --textmode --clearsign %?a?-u %a? %f"
  set pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap gpg --batch --quiet 
--no-verbose --output - --encrypt \ 
  --textmode --armor --always-trust --encrypt-to 616BB08C -- -r %r -- %f"
  set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap gpg --passphrase-fd 0 
--batch --quiet --no-verbose \
  --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust 
%--encrypt-to 616BB08C -- -r %r -- %f"
  set pgp_import_command="gpg --no-verbose --import -v %f"
  set pgp_export_command="gpg--no-verbose --export --armor %r"
  set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint 
--check-sigs %r"
  set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons 
--list-keys %r"
  set pgp_list_secring_command="gpg --no-verbose --batch --with-colons 
--list-secret-keys %r"
  set pgp_good_sign="^gpg:Good signature from"
  message-hook '!(~g|~G) ~b"^-----BEGIN\ PGP\ (SIGNED\ )?MESSAGE"' "exec 
check-traditional-pgp"

Mutt version Mutt 1.5.23 / gpg  1.4.18 @ debian stable.

Any help or pointers on how to resolve this would be highly appreciated!
With kindly regards
Jonas Hedman

Attachment: signature.asc
Description: Digital signature

Reply via email to