Results 1 to 1 of 1
Apr 13, 2009, 07:02 #1
Ruby 1.9 still cannot list all files on Vista or XP when has unicode characters?
i started a thread on
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.