Mathis Hofer wrote on 6/29/07 12:29 PM:
> There were two problems:
> 1. I apparently used a unicode string for the "Content-Disposition"
> which I had to convert to ASCII.
> 2. I had to override the HTTPContent.write() method and put out the
> strings without converting them to "str". Otherwis
Mathis Hofer wrote:
> 2. I had to override the HTTPContent.write() method and put out the
> strings without converting them to "str". Otherwise WebKit tried to
> convert the CP1252-encoded string into ASCII which also resulted in a
> UnicodeDecodeError for special chars.
>
> The latter is a gene
Hey Chris
> The servlet works for me, I get the PDF with the table with no errors.
> Which versions of Python, Webware, Reportlab and OS are you using?
> Did you change sys.setdefaultencoding or something like that?
Thank you for helping. I was finally able to fix it.
There were two problems:
Mathis Hofer wrote:
> Here is a stripped down servlet which gives me a UnicodeDecodeError. I
> found out, that the table is the problem, there is no exception with
> paragraphs.
The servlet works for me, I get the PDF with the table with no errors.
Which versions of Python, Webware, Reportlab and
Hi Christoph
Here is a stripped down servlet which gives me a UnicodeDecodeError. I
found out, that the table is the problem, there is no exception with
paragraphs.
Mathis
--
DreamLab Technologies AG
Monbijoustrasse 36
3011 Bern
Switzerland
Tel: +41 31 398 66 66
Fax: +41 31 398 66 69
PGP Key
Mathis, can you send a complete example servlet so I can reproduce this?
I am using Reportlab with Webware but never saw such problems.
-- Chris
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FR
Hi all
I'm trying to output a PDF generated with Reportlab within a WebKit
servlet. The PDF data seems to be in WinAnsiEncoding (CP1252).
If I just output the data with self.write(pdf), I get this error:
File "/opt/Webware/WebKit/ASStreamOut.py", line 84, in flush
self._buffer += ''.join(s