Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/QuickBaseClient.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1497,6 +1497,7 @@ def dateToMS( dateString )
# Converts a string into an array, given a field separator.
# '"' followed by the field separator are treated the same way as just the field separator.
def splitString(string, fieldSeparator = ",")
string &&= string.encode("UTF-8", "binary", :invalid => :replace, :undef => :replace, :replace => "")
CSV.parse(string, col_sep: fieldSeparator).shift
end

Expand Down Expand Up @@ -4457,9 +4458,8 @@ def importSVFile( filename, fieldSeparator = ",", dbid = @dbid, targetFieldNames
else
csvdata = ""
validLines.each{ |line|
if line
csvdata << line.join( ',' )
csvdata << "\n"
if line
csvdata << line.to_csv
end
}
clist = targetFieldIDs.join( '.' )
Expand Down