Merge pull request #658 from Arcadelia/CSV_Multi-char-separator_support

Support for multi-char-separators in CSV
This commit is contained in:
Tom Morris 2013-08-14 07:29:45 -07:00
commit ab42df6ea3

View File

@ -99,7 +99,7 @@ public class SeparatorBasedImporter extends TabularImportingParserBase {
boolean strictQuotes = JSONUtilities.getBoolean(options, "strictQuotes", false);
final CSVParser parser = new CSVParser(
sep.toCharArray()[0],//HACK changing string to char - won't work for multi-char separators.
sep,
CSVParser.DEFAULT_QUOTE_CHARACTER,
(char) 0, // we don't want escape processing
strictQuotes,