[reportlab-users] V2 bullet
Robin Becker
robin at reportlab.com
Thu Jul 13 03:45:12 EDT 2006
Mike Dewhirst wrote:
> I just upgraded from ReportLab version 1.2 to 2.0 and my tests fail in
> one place only. Here is the last bit of traceback ...
>
> File "C:\usr\bin\lib\encodings\utf_8.py", line 16, in decode
> return codecs.utf_8_decode(input, errors, True)
> UnicodeDecodeError: 'utf8' codec can't decode byte 0xb7 in position 0:
> unexpected code byte
>
> Here is the problem ...
>
> self.bullet_char = chr(183) #'*'
>
> If I swap an asterisk for the chr(183) my tests all work again.
>
> I have never deliberatly used unicode so I'm out of my depth (again).
> What is the correct way to reinstate that bullet?
>
> Thanks
>
> Mike
Try replacing with '\xc2\xb7' and see if that is the right bullet.
--
Robin Becker
More information about the reportlab-users
mailing list