File.exist? not working when directory contain letters like 'ñ' in its name

File.exist? in not working with directory name having special
characters. for something like given below
path =
“/home/cis/Desktop/‘El%20POP%20que%20llevas%20dentro%20Vol.%202’/*.mp3”

it works fine but if it has letters like ñ its returns false.
Plz help with this.

If you are not working with 2.0 you should use:

#encode: utf-8

…in the top of the script. Also you have to have the correct encoding
configuration(utf-8 in this case) in your IDE. If that not solve your
problem you will have to play with encode(), encoding() and
force_encoding() string methods. Check out the documentation.