Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BB48A10D30 for ; Tue, 21 Jan 2014 02:57:30 +0000 (UTC) Received: (qmail 78664 invoked by uid 500); 21 Jan 2014 02:57:24 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 78601 invoked by uid 500); 21 Jan 2014 02:57:23 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 78580 invoked by uid 99); 21 Jan 2014 02:57:22 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jan 2014 02:57:22 +0000 Date: Tue, 21 Jan 2014 02:57:22 +0000 (UTC) From: "Gary Gregory (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CSV-35) Escaped line separators are not supported MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CSV-35?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13877129#comment-13877129 ] Gary Gregory commented on CSV-35: --------------------------------- So, not addressing this means that we cannot deal with MySQL exports? That seems harsh (for users). It sounds like, for users, the way to tell [csv] about this is with a withMySQLEol(boolean) option? Which would be a special case as Sebb mentioned. > Escaped line separators are not supported > ----------------------------------------- > > Key: CSV-35 > URL: https://issues.apache.org/jira/browse/CSV-35 > Project: Commons CSV > Issue Type: Bug > Reporter: Emmanuel Bourg > Fix For: 1.0 > > > Commons CSV doesn't handle escaped line separators, for example: > {code} > value1;value2;value3a\ > value3b > {code} > In this case the expected result is: > {code}["value1", "value2", "value3a\nvalue3b"]{code} > This kind of escaping is produced by MySQL, whether the field enclosing is enabled or not. It's possible to see enclosing quotes and escaped line separators like this: > {code} > "value1";"value2";"value3a\ > value3b" > {code} -- This message was sent by Atlassian JIRA (v6.1.5#6160)