[Buildbot-devel] utf-8 woes

Marcus Lindblom macke at yar.nu
Sat Jul 31 08:13:36 UTC 2010

0xe2 = 226 dec. It is not the \n sign. It's somewhere in the 'text' 
object (at byte 54-55 I'd guess).

Printing 'text' to log/stdout and tying to locate the source of the 
offending character would help you track down the bug.

(It might be a BB bug, as unicode-ness is relatively new.)


On 2010-07-31 09:11, Andy Howell wrote:
> 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?
> Thanks
> 	Andy
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://p.sf.net/sfu/dev2dev-palm

More information about the devel mailing list