Forum: Rails I18n how to glob with international or unicode file names?

Posted by winter heat (winterheat)
on 2007-10-14 14:46
 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

to test it, you can grab some international characters at

  http://news.google.com/news?ned=hk
Posted by Ben Delat (badelatng)
on 2009-02-02 17:03
I know this is an old post, but I was wondering if there is a way to do 
this?  I've been trying to use Ruby to do more of my scripting, but I 
have to keep switching back to python because I can't find a way to open 
files that use unicode characters in their name.  I've tried Ruby 1.9 
which I thought would deal with this, but it doesn't seem to work.

Am I missing something?

Any help is appreciated.

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
> 
> to test it, you can grab some international characters at
> 
>   http://news.google.com/news?ned=hk
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.