Re: Bug in dir() leads to Unicode and win_dir()
- Posted by Greg Haberek <ghaberek at gmail.com> Jul 15, 2005
- 489 views
> But anyway it is just Windows feature, not dir() bug, > I think. Correct me please, if I'm wrong. All of Windows 2000/XP uses the Unicode (W) versions of functions. All ANSI (A)versions are just backward compatible. When converting from Unicode to ANSI, any unknown characters are replaced by a '?' as the default character. I just learned this recently. So in reality, this isn't even a bug, it's a Microsoft "feature" but either way, it has caused me some issues. I tried creating file names with characters from 129-255 and all I got back for some of them was a '?' character. Thus the need to for win_dir() with Unicode support. Besides, who doesn't want 32,767 character file names? :) ~Greg