Bug #4636
closedMorpho should ignore commas inside double-quoted fields (CSV import)
0%
Description
It is a standard CSV convention to enclose fields containing commas (i.e., commas that do not represent delimiters) in double quotes. Most applications respect this convention. However, when importing or displaying a comma-separated data file, Morpho treats all commas as field separators regardless of double quotes. This means the automatic import wizard doesn't behave properly, and data are misaligned in the data panel viewer.
A workaround is to convert the CSV file to another format (e.g., tab-delimited) before importing, but this is not always convenient nor desirable.
Sample CSV file attached.
Files
Related issues
Updated by ben leinfelder almost 14 years ago
Using opencsv library (had already used it in Metacat for a different project) to parse and write data files instead of the roll-your-own approach that was in place. This is on trunk in SVN.
Updated by ben leinfelder almost 14 years ago
closing - please reopen with if additional problems come up.