createfile

Python win32file.CreateFile with UniCode Character

Python win32file.CreateFile with UniCode Character Question: When trying to access a file with a Russian unicode character using win32file.CreateFile(), I get: Traceback (most recent call last): File "test-utf8.py", line 36, in <module> None ) pywintypes.error: (123, ‘CreateFile’, ‘The filename, directory name, or volume l abel syntax is incorrect.’) Here’s the code. I’m using Python 2.7. …

Total answers: 1