I'm trying to open files with names that contain Japanese characters, and found 
that win32file.CreateFile would raise an exception indicating that 'The 
filename, directory name, or volume label syntax is incorrect'.  I found 
win32file.CreateFileW (documented to deal with 'unicode'), and that did return 
a handle for me.  What puzzles me is that both functions take a PyUNICODE 
filename, so I just assumed that CreateFile would deal with the unicode 
pathname I was giving it.  So, my question is, should I just use 
win32file.CreateFileW instead of win32file.CreateFile, and is it safe to use 
for all file handles, including those that do not have wide characters?

Thanks,
Scott
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to