walk_dir and Chinese filenames
- Posted by annoyed Sep 30, 2009
- 1361 views
It has taken me so-o-o-o long to get on this forum. I can't change my password because I've got a blank security question for which a blank answer is apparently insufficient. Just as well I've got a few email addresses.
ANYWAY
What I really wrote for was to ask: what's being done about dir()s inability to properly read Chinese filenames? Where I work (as IT Dept. Manager) I get a mix of English and Chinese filenames and its simply not good enough when dir() store question marks for Chinese characters. For example there's file called "组合 1.pdf" (Portfolio 1.pdf). It gets stored as "?? 1.pdf".
Now it may have to do with the fact that dir() uses machine_func() rather than the Win32 API call. Maybe I should write my own version of std/filesys.e, replacing all the machine_func()s with API calls. Or maybe keeping the old stuff but putting in ifdefs to catch a windows compile.
Sorry, this sounds like a rant.
Kind regards, Bruce