diff --git a/src/main/java/org/apache/commons/csv/CSVFormat.java b/src/main/java/org/apache/commons/csv/CSVFormat.java index 754d2229..c2356c54 100644 --- a/src/main/java/org/apache/commons/csv/CSVFormat.java +++ b/src/main/java/org/apache/commons/csv/CSVFormat.java @@ -70,11 +70,13 @@ import org.apache.commons.io.output.AppendableOutputStream; *
  • {@link #EXCEL}
  • *
  • {@link #INFORMIX_UNLOAD}
  • *
  • {@link #INFORMIX_UNLOAD_CSV}
  • + *
  • {@link #MONGODB_CSV}
  • + *
  • {@link #MONGODB_TSV}
  • *
  • {@link #MYSQL}
  • - *
  • {@link #RFC4180}
  • *
  • {@link #ORACLE}
  • *
  • {@link #POSTGRESQL_CSV}
  • *
  • {@link #POSTGRESQL_TEXT}
  • + *
  • {@link #RFC4180}
  • *
  • {@link #TDF}
  • * * @@ -1059,7 +1061,13 @@ public final class CSVFormat implements Serializable { * This is a comma-delimited format. Values are double quoted only if needed and special characters are escaped with {@code '"'}. A header line with field * names is expected. *

    - * + *

    + * As of 2024-04-05, the MongoDB documentation for {@code mongoimport} states: + *

    + *
    The csv parser accepts that data that complies with RFC RFC-4180. + * As a result, backslashes are not a valid escape character. If you use double-quotes to enclose fields in the CSV data, you must escape + * internal double-quote marks by prepending another double-quote. + *
    *

    * The {@link Builder} settings are: *