fastercsv
Fastercsv shows malformedCSVError, what am i doing wrong?
I am implementing in Ruby and i am running a project which reads a CSV file to add users. but when i pick my file it just gives always the same error:[详细]
2023-04-12 14:09 分类:问答Using Ruby CSV creates Rails Records where string fields aren't queryable
I am trying to load seed data into my Rails application from a CSV file.I initially installed the fastercsv gem, only to find out that fastercsv has been deprecated in favor of the CSV library as of r[详细]
2023-04-12 11:23 分类:问答How can I further process the line of data that causes the Ruby FasterCSV library to throw a MalformedCSVError?
The incoming data file(s) contain malformed CSV data such as non-escaped quotes, as well as (valid) CSV data such as fields containing new lines. If a CSV format error is detected I would like to use[详细]
2023-04-11 16:31 分类:问答having trouble with CSV.parse not updating rows
I am running rails 3.0.1 with ruby 1.9.2p290 and trying to parse a CSV file using CSV (since from what I understand, CSV is using the fasterCSV code now).[详细]
2023-04-11 12:23 分类:问答Export to csv using FasterCSV causes strange punctuation characters
I have a client that writes a daily feature menu in Word.They then copy & paste out of Word into a Rails app that exports the menu into a csv file using FasterCSV.The problem is that some punctuat[详细]
2023-04-04 12:57 分类:问答Rails3 CSV putting "" instead of actual quotes
Similar to this question except I don\'t use html_safe anywhere in the whole project. I generate a CSV file in index.csv.erb like this:[详细]
2023-04-03 21:44 分类:问答How do i skip over the first three rows instead of the only the first in FasterCSV
I am using FasterCSV and i am looping wit开发者_JAVA技巧h a foreach like this FasterCSV.foreach(\"#{Rails.public_path}/uploads/transfer.csv\", :encoding => \'u\', :headers => :first_row) do |r[详细]
2023-04-03 19:54 分类:问答stripping singular / from a csv file
I have a csv file which has a few areas where / proceeded by nothing and proceeded by nothing that I\'d like to strip out.The catch is, I also have other items in the file which have a / that I don\'t[详细]
2023-04-03 12:00 分类:问答Parse a malformed CSV line
I am parsing the follow开发者_StackOverflow中文版ing CSV lines. I need to rescue malformed lines that look like \"Malformed\" below. What is a regular expression I can use to do this? What considerati[详细]
2023-03-30 03:17 分类:问答trying to get the delta between columns using FasterCSV
A bit of a noob here so apologies in advance. I am trying to read a CSV file which has a number of columns, I would like see if one string\"foo\" exists anywhere in the file, and if so, grab the stri[详细]
2023-03-26 04:50 分类:问答