[reportlab-users] encoding errors
Dirk Holtwick
holtwick at spirito.de
Tue Jan 23 05:48:18 EST 2007
Hi,
and here I got another error while trying to set a BaseDocTemplate
"title", "author" and "subject" as Unicode with German umlauts:
error in line 0: Traceback (innermost last):
File "c:\work\pisa\sx\pisapro\pml.py", line 365, in __init__
self.doc.build(self.story.pop())
File "C:\work\reportlab\reportlab\platypus\doctemplate.py", line 749, in build
self._endBuild()
File "C:\work\reportlab\reportlab\platypus\doctemplate.py", line 698, in _endBuild
if getattr(self,'_doSave',1): self.canv.save()
File "C:\work\reportlab\reportlab\pdfgen\canvas.py", line 870, in save
self._doc.SaveToFile(self._filename, self)
File "c:\work\reportlab\reportlab\pdfbase\pdfdoc.py", line 215, in SaveToFile
f.write(self.GetPDFData(canvas))
File "c:\work\reportlab\reportlab\pdfbase\pdfdoc.py", line 230, in GetPDFData
self.info.digest(self.signature)
File "c:\work\reportlab\reportlab\pdfbase\pdfdoc.py", line 1337, in digest
md5object.update(str(x))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 17: ordinal not in range(128)
Yours Dirk
More information about the reportlab-users
mailing list