From: Heesob Park Date: 2009-04-08T16:58:48+09:00 Subject: Re: Ruby 1.9 still cannot list all files on Vista or XP? 2009/4/8 Ryan Davis : > > On Apr 7, 2009, at 22:59 , SpringFlowers AutumnMoon wrote: > >> both methods show ????????.txt   when the filename has foreign >> characters.  Can Ruby 1.9 readily handle this task rather than resorting >> to Win32API?  Thanks. > > show where? on what? what text encodings does it handle? what text encodings > did you set ruby up for? > > On OSX: > > % cd x > % touch ☃ > % ls > ☃ > % ruby -e 'p Dir["*"]' > ["\342\230\203"] > % ruby -KU -e 'p Dir["*"]' > ["☃"] > % ~/.multiruby/install/1.9.1-p0/bin/ruby -e 'p Dir["*"]' > ["☃"] > > You've got 2 sides to this equation, ruby's encodings, and your > environment's encodings. > This is Windows specific issue. Refer to the OP's original posting http://www.ruby-forum.com/topic/163681 As far as I know, this issue is not fixed in ruby 1.9.1 Regards, Park Heesbob