[python-win32] drag&drop files with non-ASCII filenames?
Random832
random832 at fastmail.com
Wed Dec 16 11:23:50 EST 2015
Ulli Horlacher <framstag at rus.uni-stuttgart.de> writes:
>> That's not true. Well, it's only true A) of programs that use
>> 8-bit I/O instead of Unicode (which unfortunately happens to
>> include Python
>
> Ok, then this is a dead end for me?
I meant normal Python I/O (read, input, print, etc). getwch
isn't exactly *not* Unicode, though you read the rest of the
post discussing its problems.
If you want to use a strictly console-based approach, you could
simply provide a text input field for the user to type (or
paste, or drop) a filename followed by pressing Enter. Your use
of kbhit/getwch is intended to "automatically" detect the end of
the filename without having to press enter, right?
More information about the python-win32
mailing list