[reportlab-users] reportlab-users Digest, Vol 78, Issue 23
yangyingchao
yangyingchao at gmail.com
Wed Oct 27 20:55:14 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
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.htm>
More information about the reportlab-users
mailing list