non standard path characters

aspineux aspineux at gmail.com
Thu May 31 07:45:21 EDT 2007


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 <r... at reportlab.com> 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.
>
> Is there a standard way to do these path string conversions?
>
> Paths appear to come from all sorts of places and given the increasing use of
> zip file packaging it doesn't seem appropriate to rely on the current platform
> as a single choice for the default encoding.
> --
> Robin Becker





More information about the Python-list mailing list