[jira] [Resolved] (SANDBOX-216) CSVWriter does not escape commas and quotes

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Resolved] (SANDBOX-216) CSVWriter does not escape commas and quotes

ASF GitHub Bot (Jira)

     [ https://issues.apache.org/jira/browse/SANDBOX-216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bourg resolved SANDBOX-216.

    Resolution: Won't Fix

The CSVWriter class and its package have been removed from Commons CSV. CSVPrinter should be used instead.

> CSVWriter does not escape commas and quotes
> -------------------------------------------
>                 Key: SANDBOX-216
>                 URL: https://issues.apache.org/jira/browse/SANDBOX-216
>             Project: Commons Sandbox
>          Issue Type: Bug
>          Components: CSV
>            Reporter: David Wallace Croft
>             Fix For: CSV 1.0
>   Original Estimate: 3h
>  Remaining Estimate: 3h
> When CSVWriter is provided a field value of "Hello, \"Bob\"!", it writes it out directly instead of wrapping it in quotes and escaping the internal quotes.  See the Wikipedia entry on CSV:
> http://en.wikipedia.org/wiki/Comma-separated_values

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira