[reportlab-users] Filenames on Windows
peter at maubp.freeserve.co.uk
Fri Jul 31 07:49:00 EDT 2009
On Fri, Jul 31, 2009 at 12:32 PM, Wietse Jacobs<wietse.j at gmail.com> wrote:
> We've run into a problem when saving a pdf file with reportlab if the
> filename contains non-ascii characters. This is on Windows.
> The problem is with how Python handles the "open(filename)" function
> on Windows in combination with the fact that reportlab will always
> encode a unicode string as utf-8:
As a work around, have you tried giving ReportLab a handle, instead
of a filename? That way you can control how it is named and opened.
More information about the reportlab-users