From: Michael Oltz Date: 2013-07-31T13:50:36+09:00 Subject: Problem with Net::SFTP I am trying to use Net::SFTP#download! If I provide a character constant of the filepath as the argument, it works fine. If I read a character string from a local disk file and provide a variable with that in, as the filepath, it does not work. I get an 'on-open' failure (4). The character strings look identical if I print them out. I looked at .encoding on both the constant and the variable and they are both UTF-8. And I have # encoding: utf-8 as the second line of my source. This is using the most recent version of both net-ssh (2.6.8) and net-sftp (2.1.2) with Ruby 1.9.3. The same problem happened with the immediately previous version of both gems. -- Posted via http://www.ruby-forum.com/.