From f8b1ea2cee634df50b2a6edcbdc8c8c635606835 Mon Sep 17 00:00:00 2001 From: sigoa Date: Mon, 26 Mar 2018 21:37:23 +0200 Subject: [PATCH] str(subject) may not be ascii --- src/bitmessageqt/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitmessageqt/account.py b/src/bitmessageqt/account.py index 92d497f8..e2e84858 100644 --- a/src/bitmessageqt/account.py +++ b/src/bitmessageqt/account.py @@ -131,7 +131,7 @@ class BMAccount(object): self.toAddress = toAddress self.fromAddress = fromAddress if isinstance(subject, unicode): - self.subject = str(subject) + self.subject = subject.encode('utf-8', 'ignore').decode('utf-8') #### str(subject) not ascii else: self.subject = subject self.message = message -- 2.45.1