[reportlab-users] reportlab-users Digest, Vol 78, Issue 24
Henning von Bargen
H.vonBargen at t-p.com
Thu Oct 28 12:13:01 EDT 2010
> Well, filename is unicode, but utf8str() tries to encode it into utf8 string. And that may cause some problem in all systems who > are not using utf8 for encoding.
>
> And I think there should be some improvements in reportlab, not in the users codes.
>
> Thanks
> Tubo
You misunderstood.
I suggest to fix reportlab actually:
saveToFile is a method in pdfdoc.py which should be fixed.
Henning
At 2010-10-28 00:00:26?reportlab-users-request at lists2.reportlab.com wrote:
>Probably not a good idea.
>Instead, you better remove the 2 calls to utf8str in saveToFile
>entirely and use the filename as is.
>Then, when you specify the filename argument, use a unicode
>object instead of a byte-string (the built-in open works fine with unicode).
>
>HTH
>Henning
>
>
>------------------------------
>
>_______________________________________________
>reportlab-users mailing list
>reportlab-users at lists2.reportlab.com
>http://two.pairlist.net/mailman/listinfo/reportlab-users
>
>
>End of reportlab-users Digest, Vol 78, Issue 23
>***********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20101028/2dbfc1b4/attachment-0001.htm>
------------------------------
_______________________________________________
reportlab-users mailing list
reportlab-users at lists2.reportlab.com
http://two.pairlist.net/mailman/listinfo/reportlab-users
End of reportlab-users Digest, Vol 78, Issue 24
***********************************************
More information about the reportlab-users
mailing list