Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread
Message: 93837
BY: James Gray (bbazzarrakk)
DATE: 2010-06-10 16:03
SUBJECT: RE: :row_sep not taken into account ???

 

It should definitely work with an unquoted \r\n. If does when I test locally:

>> require "rubygems"
=> true
>> require "faster_csv"
=> true
>> FCSV.parse("a,b,c\r\n1,2,3\r\n", :headers => true, :encoding => "U").to_a
=> [["a", "b", "c"], ["1", "2", "3"]]

I see you are setting the quote_char and col_sep. What's in those variables? I would recommend removing all settings where the defaults work, to decrease chances of introducing an incompatibility.

James Edward Gray II


Thread View

Thread Author Date
:row_sep not taken into account ???Benjamin BAROUKH2010-06-10 10:39
      RE: :row_sep not taken into account ???James Gray2010-06-10 14:35
            RE: :row_sep not taken into account ???Benjamin BAROUKH2010-06-10 15:10
                  RE: :row_sep not taken into account ???James Gray2010-06-10 16:03

Post a followup to this message