From: Wayne Brisette Date: 2013-01-30T22:37:15+09:00 Subject: Re: (Errno::EINVAL) occurs during the File::rename() execution Look at the Ruby Gem UNF. I think that should solve your problem. Wayne ----- Original Message ---- From: Arup Rakshit To: ruby-talk ML Sent: Wed, January 30, 2013 7:31:13 AM Subject: Re: (Errno::EINVAL) occurs during the File::rename() execution After doing a bit research I found that there is a file called "Specjalistyczny Gabinet Kardiologiczny Dr hab. med. Ewa Straburzyńska-Migaj.pdf" in the directory - "H76954". Now when the script reading,one character - `ń` in the file name converting it to the `?`. Thus getting the error. Anyway to avoid the such character encoding problem? -- Posted via http://www.ruby-forum.com/.