lib/bill_hicks/inventory.rb in bill_hicks-1.1.6 vs lib/bill_hicks/inventory.rb in bill_hicks-1.1.7

- old
+ new

@@ -54,12 +54,12 @@ def process_as_chunks(size) connect(@options) do |ftp| temp_csv_file = Tempfile.new ftp.chdir(BillHicks.config.top_level_dir) - ftp.gettextfile(INVENTORY_FILENAME, temp_csv_file.path) + ftp.getbinaryfile(INVENTORY_FILENAME, temp_csv_file.path) - SmarterCSV.process(temp_csv_file, { :chunk_size => size }) do |chunk| + SmarterCSV.process(temp_csv_file, { :chunk_size => size, :force_utf8 => true, :convert_values_to_numeric => false }) do |chunk| yield(chunk) end temp_csv_file.unlink end