On Nov 4, 2010, at 1:40 PM, Kenny Lam wrote: > I'm currently porting a script to 1.9 and I'm having problems getting > CSV parsing to work. > I tested with a simple file whose contents are: > field1,field2 > field3,field4 CSV should definitely handle that data. Indeed it does for me: $ ruby -v -r csv -e 'p CSV.parse("field1,field2\r\nfield3,field4\r\n")' ruby 1.9.2dev (2010-04-28 trunk 27536) [x86_64-darwin10.3.0] [["field1", "field2"], ["field3", "field4"]] > This file was created using a basic text editor and does not contain any > unorthodox newline characters. Can we see exactly what the file does contain, with code like: $ ruby -e 'p File.read("path/to/file.csv")' ? James Edward Gray II