From: 7stud -- Date: 2007-10-15T02:55:30+09:00 Subject: Re: how to glob with international or unicode file names? Hmmm...let's try that again: 7stud -- wrote: > SpringFlowers AutumnMoon wrote: >> with the Dir[" path "] >> or Dir.glob >> >> is it possible to glob the filenames with unicode or international >> characters in it? Right now it is returning ????????.mp3 >> > > I think that means your display device doesn't understand the > characters--not that ruby is unable to retrieve those filenames. For > instance, if I have a file named: 叩叩叩.txt in the current directory, and I write: arr = Dir['*'] puts arr the output is: .... .... 叩叩叩.txt .... .... My terminal can display utf-8 encoded characters. -- Posted via http://www.ruby-forum.com/.