> thanks for that. I guess the problem is that when a path is obtained
> from such an object the code that gets the path usually has no way of
> knowing what the intended use is. That makes storage as simple bytes
> hard. I guess the correct way is to always convert to a standard (say
> utf8) and t
Tijs wrote:
> Robin Becker wrote:
...
> Zip files contain a bit flag for the character encoding (cp430 or utf-8),
> see the ZipInfo object in module zipfile and the link (on that page) to the
> file format description.
> But I think some zip programs just put the path in the zipfile, encoded in
Robin Becker wrote:
> A kind user reports having problems running the reportlab tests because
> his path has non-ascii characters in it eg
>
> .\Mes documents\Mes Téléchargements\Firefox\...
>
> somewhere in the tests we look at the path and then try and convert to
> utf8 for display in pdf.
I thing you should change the code page before to run the test, doing
something like :
c:\> chcp 850
c:\> \python.exe ..\test.py
look for the good code page for you, maybe 850, 437 or 1230 or 1250
should work
Regards
On 31 mai, 12:17, Robin Becker <[EMAIL PROTECTED]> wrote:
> A kind u