Hello, I hope someone can help me because I can't figure out what's
wrong.

Here's a part of my code:
---------------------------------------------------------------------
directory = '/Volumes/Home
Directory/Media/Film/TV-serier/Supernatural/Säsong 5'
files = Dir.entries("#{directory}")
---------------------------------------------------------------------
Works like a charm!

Here's another part of my  code:
---------------------------------------------------------------------
File.rename(directory+files[2], directory+episodeList[2])
---------------------------------------------------------------------
Doesn't work!

I get the error: No such file or directory - No such file or directory -
/Volumes/Home Directory/Media/Film/TV-serier/Supernatural/S???song
5supernatural.s05e05.hdtv-lol.avi or /Volumes/Home
Directory/Media/Film/TV-serier/Supernatural/S???song 5S05 E05 - Fallen
Idol.avi (Errno::ENOENT)

What the hell is wrong? I'm using the exact same string, directory. I
know this doesn't work is because I've the letter "ä" in the path. If I
change to an "a" it's works. But I can't understand why, because it
works perfectly with an "ä" in the first part of my code.

Very grateful if someone have the solution to my problem!
-- 
Posted via http://www.ruby-forum.com/.