Comment 6 for bug 1393472

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/3992
Committed: http://gitorious.org/mahara/mahara/commit/7be6438a3908e41ed8bafbc7a3e3361ee4a14274
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 7be6438a3908e41ed8bafbc7a3e3361ee4a14274
Author: Tobias Zeuch <email address hidden>
Date: Wed Nov 19 10:44:42 2014 +0100

Make CSV-Import autodetect delimiter

Bug 1393472: Automatically detect the delimiter used to store the fields in the
csv field. The problem this should solve is that Microsoft Excel uses a
semicolon instead of a comma if the language setting of Windows is set to
German.
The first line of the csv-file contains the header fields so we use that line
to check, if it contains a comma or a semicolon since none of these appears in
the header field names itself.

Change-Id: I833041eb2169fc5ccc9557e0debf3f03c8daf7cc
Signed-off-by: Tobias Zeuch <email address hidden>