From f837643f1e9591be6214ad94ef9015f4f098c4a4 Mon Sep 17 00:00:00 2001 From: Frank Wennerdahl Date: Fri, 18 Jan 2013 16:28:27 +0100 Subject: [PATCH] Support for multi-char-separators in CSV This change requires that the following patch is applied to OpenCSV: http://sourceforge.net/tracker/index.php?func=detail&aid=3599477&group_id=148905&atid=773543 --- .../src/com/google/refine/importers/SeparatorBasedImporter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/src/com/google/refine/importers/SeparatorBasedImporter.java b/main/src/com/google/refine/importers/SeparatorBasedImporter.java index cd28d92bf..c2e201c33 100644 --- a/main/src/com/google/refine/importers/SeparatorBasedImporter.java +++ b/main/src/com/google/refine/importers/SeparatorBasedImporter.java @@ -97,7 +97,7 @@ public class SeparatorBasedImporter extends TabularImportingParserBase { boolean processQuotes = JSONUtilities.getBoolean(options, "processQuotes", true); 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, // escape character CSVParser.DEFAULT_STRICT_QUOTES,