Following patch is needed to handle properly:
/home/marxin/mysandbox/bin/python2 /home/marxin/mysandbox/bin/lnt send-run-comparison /home/marxin/Programming/lnt-instance 414 321 --from marxin.liska@gmail.com --host localhost --to marxin.liska@gmail.com --testsuite SPEC Traceback (most recent call last): File "/home/marxin/mysandbox/bin/lnt", line 11, in <module> load_entry_point('LNT', 'console_scripts', 'lnt')() File "/home/marxin/mysandbox/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/home/marxin/mysandbox/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py", line 697, in main rv = self.invoke(ctx) File "/home/marxin/mysandbox/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/marxin/mysandbox/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/marxin/mysandbox/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/home/marxin/Programming/lnt-marxinbox/lnt/lnttool/main.py", line 371, in action_send_run_comparison msg.attach(email.mime.text.MIMEText(html_report, 'html')) File "/usr/lib64/python2.7/email/mime/text.py", line 30, in __init__ self.set_payload(_text, _charset) File "/usr/lib64/python2.7/email/message.py", line 226, in set_payload self.set_charset(charset) File "/usr/lib64/python2.7/email/message.py", line 262, in set_charset self._payload = self._payload.encode(charset.output_charset) UnicodeEncodeError: 'ascii' codec can't encode character u'\u0394' in position 6113: ordinal not in range(128)
The problematic character is delta character:
http://www.fileformat.info/info/unicode/char/0394/index.htm