commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (Commented) (JIRA)" <>
Subject [jira] [Commented] (CSV-53) Allow to always enclose printed values into quotes
Date Tue, 27 Mar 2012 14:22:30 GMT


Sebb commented on CSV-53:

If the user selects QUOTE_NONE then the only options for printing a value which contains a
delimiter or EOL - or which starts with the quote character - are:
- escape the character(s)
- throw an Exception

In which case, we just use the escape character setting to determine which to do.

[Otherwise the printed output will not be valid, and I don't think we should allow that.]

If the user wants to use a different escape setting for parsing and printing, then they can
just create a different format.
Otherwise we are back into having separate parsing and printing CSVFormat classes, which you
already said you did not want.
> Allow to always enclose printed values into quotes
> --------------------------------------------------
>                 Key: CSV-53
>                 URL:
>             Project: Commons CSV
>          Issue Type: Improvement
>          Components: Printer
>            Reporter: Emmanuel Bourg
>             Fix For: 1.x
> The printer encloses the values into quotes only if it contains a special character like
a field separator or a line separator. However some applications expect the values to always
be enclosed into quotes. It's necassary to be able to control how the quotes are added, either
always or as needed.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message