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: 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". Otherwise WebKit tried to convert the CP1252-encoded string into ASCII which also resulted in a UnicodeDecodeError for special chars. The latter is a general problem for web pages in Unicode and I think it should be changed (if not already done): The HTTPContent.write() should not convert the output to ASCII, since this makes output in different encodings impossible... it should either leave the output like it is so it's up to the developer to perform the encoding, or it should use a customizable encoding. Greetings, Mathis -- DreamLab Technologies AG Monbijoustrasse 36 3011 Bern Switzerland Tel: +41 31 398 66 66 Fax: +41 31 398 66 69 PGP Key ID: 2462240B
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ Webware-devel mailing list Webware-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-devel