From 42dcf862b821203f3c0f838f7e94ddd3b81bd0f9 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Feb 03 2016 16:10:09 +0000 Subject: Encode to UTF-8 the content of the emails we print to the console for debugging Turns out it's needed --- diff --git a/pagure/lib/notify.py b/pagure/lib/notify.py index 9fd2a93..fccd759 100644 --- a/pagure/lib/notify.py +++ b/pagure/lib/notify.py @@ -157,7 +157,7 @@ def send_email(text, subject, to_mail, print 'in_reply_to: %s' % in_reply_to print 'mail_id: %s' % mail_id print 'Contents:' - print text + print text.encode('utf-8') print '*****/EMAIL******' return