commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <>
Subject [jira] Commented: (SANDBOX-161) CSVPrinter#escapeAndQuote(String) doesn't adhere to CSV standard
Date Tue, 01 Aug 2006 06:59:14 GMT
    [ ] 
Henri Yandell commented on SANDBOX-161:

I'll look into fixing this, but patches are welcome.

At a rough guess it means that an encapsulatorEscapeChar should be added to the CSVStrategy,
and the code changed to look at this. Both the Parser and Printer.

> CSVPrinter#escapeAndQuote(String) doesn't adhere to CSV standard
> ----------------------------------------------------------------
>                 Key: SANDBOX-161
>                 URL:
>             Project: Commons Sandbox
>          Issue Type: Bug
>          Components: CSV
>    Affects Versions: Nightly Builds
>            Reporter: Daniel Gredler
> 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?

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message