Ruby 1.9 + Net::FTP => Encoding::UndefinedConversionError
问题 i upgraded from Ruby 1.8.7 to 1.9.2 (and Rails 3.2.2) and have the problem that Net::FTP#gettextfile is throwing an Encoding::UndefinedConversionError I'm trying to download a xml file which is encoded as utf-8. The dowload works fine if i use getbinaryfile, but i would like to understand why gettextfile is not working. # -*- encoding : utf-8 -*- # working ftp = Net::FTP.open(host,user,password) ftp.passive = true ftp.getbinaryfile("some.xml","tmp/some.xml") # not working ftp = Net::FTP.open