You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Benedikt Ritter (JIRA)" <ji...@apache.org> on 2014/08/14 22:08:23 UTC
[jira] [Closed] (CSV-3) CSVPrinter#escapeAndQuote(String) doesn't
adhere to CSV standard
[ https://issues.apache.org/jira/browse/CSV-3?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benedikt Ritter closed CSV-3.
-----------------------------
> CSVPrinter#escapeAndQuote(String) doesn't adhere to CSV standard
> ----------------------------------------------------------------
>
> Key: CSV-3
> URL: https://issues.apache.org/jira/browse/CSV-3
> Project: Commons CSV
> Issue Type: Bug
> Components: Printer
> Reporter: Daniel Gredler
> Fix For: 1.0
>
> Attachments: commons-csv-patch-standard-escaping.txt
>
>
> All the descriptions of the CSV format that I've seen state that:
> - Double quotes (") are escaped using two double quotes (""), rather than a backslash (\").
> - Embedded line breaks are allowed and don't need to be escaped... just enclose the field in double quotes.
> - Because backslashes are not used to escape double quotes or line breaks, the backslashes themselves do not need to be escaped.
> CSVPrinter#escapeAndQuote(String) breaks these rules. Why?
> http://www.creativyst.com/Doc/Articles/CSV/CSV01.htm
> http://en.wikipedia.org/wiki/Comma-separated_values
--
This message was sent by Atlassian JIRA
(v6.2#6252)