Bug #14253
closed
- Status changed from Open to Closed
- Assignee set to kou (Kouhei Sutou)
Could you consider backporting this patch to 2.5?
The following code that generates a CSV file with a BOM does not work correctly with Ruby 2.5.
require 'csv'
csv_str = "\uFEFF" # BOM
CSV.generate(csv_str) do |csv|
csv << ["列1", "列2", "列3"]
end
print csv_str
Also available in: Atom
PDF
Like0
Like0Like0