Bug in win32file.FindFilesW ?
Mark Hammond
mhammond at skippinet.com.au
Thu Nov 28 16:26:17 EST 2002
Werner Merkl wrote:
>
>>>>f.FindFilesW(dir)
>
> Traceback (most recent call last):
> File "<interactive input>", line 1, in ?
> UnicodeError: ASCII encoding error: ordinal not in range(128)
You will find that this is simply the error from *printing* the result,
not from the operation.
l = f.FindFilesW(dir)
should work fine, and each element of 'l' should have a unicode
character - but attempting to print ones with Unicode characters may fail.
> !!!! BTW: ">>> f.SetCurrentDirectory(dir)" brings also an ERROR!!!!
What error?
Mark.
More information about the Python-list
mailing list