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.
Reviewed: https:/ /reviews. mahara. org/3992 gitorious. org/mahara/ mahara/ commit/ 7be6438a3908e41 ed8bafbc7a3e336 1ee4a14274
Committed: http://
Submitter: Robert Lyon (<email address hidden>)
Branch: master
commit 7be6438a3908e41 ed8bafbc7a3e336 1ee4a14274
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: I833041eb2169fc 5ccc9557e0debf3 f03c8daf7cc
Signed-off-by: Tobias Zeuch <email address hidden>