You are not logged in.
I have this script that sends me a PGP e-mail on a particular event:
#!/usr/bin/bash
echo "$1 has completed." |
gpg --encrypt --armor --recipient me@example.com |
mail -s Completed me@example.com
This works fine, but sometimes $1 contains Unicode characters. My mail client (Thunderbird + Enigmail) always displays it as us-ascii after decrypting. How can I attach the encrypted message so that it tells Thunderbird that it's UTF-8? I tried adding "-M "application/pgp-encrypted; charset=UTF-8" to the mail command line, but that just errored out.
Offline
Does decrypting the email with gpg itself display the same issue?
Offline
No, that works fine, assuming I have my LANG variable set correctly.
Offline