From: Bosko Ivanisevic Date: 2009-04-08T16:35:07+09:00 Subject: Re: Ruby 1.9 still cannot list all files on Vista or XP? On Apr 8, 7:59 am, SpringFlowers AutumnMoon wrote: > 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. > -- > Posted viahttp://www.ruby-forum.com/. What is code page of your command prompt? When ??????.txt is shown in the console on Windows it is usually problem of code page settings.