i started a thread on

http://www.ruby-forum.com/topic/183718

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
English.

These two methods are used: entries and glob

files = Dir.new(basedir).entries

Dir.chdir(basedir)
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.
and it seems to have no viable solution yet. thanks.