Unicode filenames and os.path.* functions

Michael Ebert michael.m.ebert at daimlerchrysler.com
Fri Jan 4 04:34:04 EST 2002


Hello,

    I'm using Python 2.1.1 and have to work with unicode filenames on
Windows 2000. The functions in os.path like 
os.path.exists(Unicode-Filename), os.path.getsize(...), etc. don't support this 
("UnicodeError: ASCII encoding error: ordinal not in range(128)").
What is the reason for that? Is there a Unicode supporting file operation
library?

regards,
michael



More information about the Python-list mailing list