[reportlab-users] V2 bullet
miked at dewhirst.com.au
Thu Jul 13 08:37:43 EDT 2006
Robin Becker wrote:
> 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?
> Try replacing with '\xc2\xb7' and see if that is the right bullet.
The tests are all passing now. For my next trick I'll install v2 on the
live site and and give it a whirl. Might take me a while.
More information about the reportlab-users