Project

General

Profile

Actions

Bug #271

closed

CSV Import Problems

Added by Chuck Burton over 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
08/09/2012
Due date:
% Done:

0%

Estimated time:
Chirp Version:
daily
Model affected:
(All models)
Platform:
All
Debug Log:
I read the instructions above:

Description

I have figured out why some users (see Bug #125, entries 4 & 5) cannot load CSV files and obtain a "new-line character seen" error. It turns out that you are assuming a Windows CSV file, which terminates lines with a CR/LF (0x0D/0x0A) character pair. Linux and Mac OSX terminate lines with just a CR (0x0D) character. If you adjust your code to accept both line terminations, things should start working for all the O/Ss.


Files

CSV-ReadError.jpg (53.1 KB) CSV-ReadError.jpg Chuck Burton, 08/09/2012 12:53 PM
Test1.csv (271 Bytes) Test1.csv Chuck Burton, 08/09/2012 03:21 PM
Test2.csv (240 Bytes) Test2.csv Chuck Burton, 08/09/2012 03:21 PM
Test2Error.jpg (49.3 KB) Test2Error.jpg Chuck Burton, 08/09/2012 03:21 PM
Actions

Also available in: Atom PDF