From: James Edward Gray II Date: 2011-01-23T23:10:12+09:00 Subject: Re: FastCSV fcsv and how to keep imported field format (or how to convert it) On Jan 23, 2011, at 5:47 AM, Dot Baiki wrote: > I am struggling with a small problem with FasterCSV. > Now, this is the code I use to read the file: > > csv_data = FCSV.table(input_file, :col_sep => ';', :skip_blanks => true) > How can I instruct FasterCSV (FCSV) no to convert this particular > column? Because output should be equal input, no changes. Or should I > try to convert all? I think you should just shut off FasterCSV's conversion, since it isn't doing what you want. table() is just a simple shortcut: # # A shortcut for: # # FasterCSV.read( path, { :headers => true, # :converters => :numeric, # :header_converters => :symbol }.merge(options) ) # def self.table(path, options = Hash.new) read( path, { :headers => true, :converters => :numeric, :header_converters => :symbol }.merge(options) ) end So just call read() yourself and leave out the :converters => :numeric option. Hope that helps. James Edward Gray II