[Buildbot-devel] utf-8 woes

Andy Howell AndyHowell at austin.rr.com
Sat Jul 31 07:11:08 UTC 2010

I'm trying to make an html message formatter along the lines of the one in the docs. I've
got it working for the most part. One builder is returning back utf-8 encoded logs that
are causing the formatter to raise an exception when it sets the 'body' in the return dict:

         return {
             'body': "\n".join(text),
             'type': 'html'

exception.UnicodeDecoderError: 'ascii' codec cant decode byte 0xe2 in position 55: ordinal
not in range(128)

I tried making the \n unicode: u"\n", but that makes no difference. Ideas?



More information about the devel mailing list