no longer use utf-8 encoding bc it causes encoding issues (waow) with some emails?
This commit is contained in:
parent
51c0ea34a7
commit
9c5567addf
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ def encrypt(
|
||||||
return message.as_string()
|
return message.as_string()
|
||||||
|
|
||||||
gpg = gnupg.GPG()
|
gpg = gnupg.GPG()
|
||||||
gpg.encoding = 'utf-8' # default is latin-1 which fails w some unicode chars
|
# gpg.encoding = 'utf-8' # default is latin-1 which fails w some unicode chars
|
||||||
encrypted_content = gpg.encrypt(message.as_string(), recipients, armor=True)
|
encrypted_content = gpg.encrypt(message.as_string(), recipients, armor=True)
|
||||||
if not encrypted_content:
|
if not encrypted_content:
|
||||||
raise ValueError(encrypted_content.status)
|
raise ValueError(encrypted_content.status)
|
||||||
|
|
Loading…
Reference in a new issue