Patch #30412

Import UTF-8 issue CSV files with BOM and quoted strings

Added by Felix Schäfer 9 days ago. Updated 9 days ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Importers
Target version:3.4.8

Description

Importing issue CSV files with UTF-8 encoding, a BOM and quoted strings is currently not possible. The internal error is CSV::MalformedCSVError: Illegal quoting in line 1.

I will provide a patch with a failing test.

30412.patch Magnifier (1.89 KB) Felix Schäfer, 2019-01-12 00:52

Associated revisions

Revision 17786
Added by Go MAEDA 9 days ago

Import UTF-8 issue CSV files with BOM and quoted strings (#30412).

Patch by Felix Schäfer.

Revision 17787
Added by Go MAEDA 9 days ago

Add a fixture for r17786 (#30412).

Revision 17788
Added by Go MAEDA 9 days ago

Merged r17786 and r17787 from trunk to 4.0-stable (#30412).

Revision 17789
Added by Go MAEDA 9 days ago

Merged r17786 and r17787 from trunk to 3.4-stable (#30412).

History

#1 Updated by Felix Schäfer 9 days ago

#2 Updated by Felix Schäfer 9 days ago

Please note that the UTF-8 with BOM and quoted strings is the style of files Redmine uses for exports when exporting as UTF-8, which means CSV files from a Redmine currently cannot be imported to a Redmine again.

#3 Updated by Go MAEDA 9 days ago

  • Target version set to 3.4.8

#4 Updated by Go MAEDA 9 days ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA

Committed the patch. Thank you for your contribution.

Also available in: Atom PDF