We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0a2204 commit c2b22a6Copy full SHA for c2b22a6
lib/csv_importer/csv_reader.rb
@@ -46,7 +46,7 @@ def read_content
46
def sanitize_content(csv_content)
47
internal_encoding = encoding.split(':').last
48
csv_content
49
- .encode(Encoding.find(internal_encoding), {invalid: :replace, undef: :replace, replace: ''}) # Remove invalid byte sequences
+ .encode(Encoding.find(internal_encoding), invalid: :replace, undef: :replace, replace: '') # Remove invalid byte sequences
50
.gsub(/\r\r?\n?/, "\n") # Replaces windows line separators with "\n"
51
end
52
0 commit comments