cannot open file with non-ASCII filename

Thomas 'PointedEars' Lahn PointedEars at web.de
Mon Dec 14 17:41:21 EST 2015


Ulli Horlacher wrote:

> Laura Creighton <lac at openend.se> wrote:
>> Given that Ulli is in Germany, latin-1 is likely to work fine for him.
> 
> For me, but not for my users. We have people from about 100 nations at our
> university.
> […]
> The problem is the input of these filenames.

Why do you have to use msvcrt?

I would use curses for user input, but:

,-<https://docs.python.org/2/howto/curses.html?highlight=user%20input>
,-<https://docs.python.org/3.2/howto/curses.html?highlight=user%20input>
| 
| No one has made a Windows port of the curses module. On a Windows 
| platform, try the Console module written by Fredrik Lundh. The Console 
| module provides cursor-addressable text output, plus full support for 
| mouse and keyboard input, and is available from 
| http://effbot.org/zone/console-index.htm.

So you should try that instead.

-- 
PointedEars

Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.



More information about the Python-list mailing list