commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Kulikov (JIRA)" <>
Subject [jira] [Created] (CSV-162) Two qoute characters in a row cause error
Date Wed, 11 Nov 2015 06:33:10 GMT
Andrey Kulikov created CSV-162:

             Summary: Two qoute characters in a row cause error 
                 Key: CSV-162
             Project: Commons CSV
          Issue Type: Bug
          Components: Parser
    Affects Versions: 1.2
         Environment: Windows 7 x64
            Reporter: Andrey Kulikov

I've recently noticed a some bug, I think. I have the following csv file:
(The first line is a header)

I'm trying to parse it via this configuration:
{{CSVFormat format = CSVFormat.newFormat(',').withQuote('"').withHeader();}}

*Expected result*: all headers and values without quotes
*Actual result*: {quote}Exception in thread "main" (line 1) invalid char
between encapsulated token and delimiter
	at org.apache.commons.csv.Lexer.parseEncapsulatedToken(
	at org.apache.commons.csv.Lexer.nextToken(
	at org.apache.commons.csv.CSVParser.nextRecord(
	at org.apache.commons.csv.CSVParser.initializeHeader(
	at org.apache.commons.csv.CSVParser.<init>(
	at org.apache.commons.csv.CSVParser.<init>(
	at Runner.main(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at com.intellij.rt.execution.application.AppMain.main({quote}

This message was sent by Atlassian JIRA

View raw message