Skip to content

Commit 6cf4a36

Browse files
committed
Added a note in the Javadoc explaining the issue with the value separator for the Excel format (SANDBOX-263)
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1297429 13f79535-47bb-0310-9956-ffa450edef68
1 parent 4ea25c0 commit 6cf4a36

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/main/java/org/apache/commons/csv/CSVFormat.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,17 @@ public class CSVFormat implements Cloneable, Serializable {
5151
/** Standard comma separated format as defined by <a href="http://tools.ietf.org/html/rfc4180">RFC 4180</a>. */
5252
public static final CSVFormat DEFAULT = new CSVFormat(',', '"', DISABLED, DISABLED, true, true, false, true);
5353

54-
/** Excel file format (using a comma as the value delimiter). */
54+
/**
55+
* Excel file format (using a comma as the value delimiter).
56+
* Note that the actual value delimiter used by Excel is locale dependent,
57+
* it might be necessary to customize this format to accomodate to your
58+
* regional settings.
59+
* <p/>
60+
* For example for parsing or generating a CSV file on a French system
61+
* the following format will be used:
62+
*
63+
* <pre>CSVFormat fmt = CSVFormat.EXCEL.withDelimiter(';');</pre>
64+
*/
5565
public static final CSVFormat EXCEL = new CSVFormat(',', '"', DISABLED, DISABLED, false, false, false, false);
5666

5767
/** Tabulation delimited format. */

0 commit comments

Comments
 (0)