[
https://issues.apache.org/jira/browse/CSV-56?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13227654#comment-13227654
]
Sebb commented on CSV-56:
-------------------------
I think there are two kinds of escaping here.
Sequences such as \r and \n are used to encode characters that cannot easily be
expressed in a string.
This is different from the need to prevent meta-characters from being treated
as such, as in regular expresssions where "." is a meta-character and "\." is a
literal ".".
The Javadoc needs to be very clear on exactly what the escape character is used
for.
> Do not use exotic escape characters for sequences like \r or \n
> ---------------------------------------------------------------
>
> Key: CSV-56
> URL: https://issues.apache.org/jira/browse/CSV-56
> Project: Commons CSV
> Issue Type: Improvement
> Components: Parser
> Reporter: Emmanuel Bourg
> Priority: Minor
> Fix For: 1.0
>
>
> The parser is able to recognize escape sequences like "\r" and "\n", and
> transform them automatically. But if the format is changed to use another
> escape character like "!", the parser will also replace "!n" and "!r", which
> is rather unusual.
> The replacement should be independent from the escape character defined in
> the format. This escape character should only be used to escape a delimiter,
> a quote or a line separator.
--
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