Ruby 1.9 still cannot list all files on Vista or XP when has unicode characters?
i started a thread on
and it seems to have no viable solution yet. thanks.
I just tried using Ruby 1.9 and it seemed that it still cannot list all
files in a folder on XP or Vista when the filenames contain Chinese
characters, Japanese characters, or any foreign characters other than
These two methods are used: entries and glob
files = Dir.new(basedir).entries
files = Dir.glob("*");
both methods show ????????.txt when the filename has foreign
characters. Can Ruby 1.9 readily handle this task rather than resorting
to Win32API? Thanks.