[reportlab-users] Getting "UnicodeDecodeError" when generating reportlab docs

Mark Doukidis mdoukidis at gmail.com
Wed May 28 10:51:41 EDT 2008


Is this just me having problems ?

Attempting to generate the documentation is giving me this Traceback:

C:\reportlab\docs\userguide>python genuserguide.py

Traceback (most recent call last):
File "C:\reportlab\docs\userguide\genuserguide.py", line 73, in <module>
run((w, h))
File "C:\reportlab\docs\userguide\genuserguide.py", line 24, in run
import ch1_intro
File "C:\reportlab\docs\userguide\ch1_intro.py", line 36, in <module>
bullet("What is ReportLab all about, and why should I use it?")
File "..\tools\rl_doc_utils.py", line 140, in bullet
P = Paragraph(text, BU)
File "c:\reportlab\reportlab\platypus\paragraph.py", line 623, in __init__
self._setup(text, style, bulletText, frags, cleanBlockQuotedText)
File "c:\reportlab\reportlab\platypus\paragraph.py", line 642, in _setup
text = cleaner(text)
File "c:\reportlab\reportlab\platypus\paragraph.py", line 62, in
cleanBlockQuotedText
L=filter(truth,map(_lineClean, split(text, '\n')))
File "c:\reportlab\reportlab\platypus\paragraph.py", line 22, in split
if type(text) is str: text = text.decode('utf8')
File "C:\Python25\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
28: unexpected code byte

Version info:
Reportlab "At revision 3230." from svn repository
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)]

I am not conversant with Unicode semantics .

Mark Doukidis

PS: I have just updated from the repository to the latest version
(been a while since looked at reportlab)


More information about the reportlab-users mailing list