Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to parse with multiple quotes #130

Open
rverma-dev opened this issue Aug 16, 2023 · 1 comment
Open

Unable to parse with multiple quotes #130

rverma-dev opened this issue Aug 16, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@rverma-dev
Copy link

Describe the bug
trying to parse a csv record as
"""Permits complete"" received";;Phase 3 : 067f65dc7dc7f703229bcb7b3b21d9 , c227adc4c8ab8854dd8cc5764ce63deb1b
with delimiter ','
and escape char ''

getting an error as
com.github.doyaaaaaken.kotlincsv.util.CSVParseFormatException: must appear delimiter or line terminator after quote end [rowNum = 6, colIndex = 31, char = ;]

Expected behavior
Expect that the csv parser reads 2 cells

  1. """Permits complete"" received";;Phase 3 : 067f65dc7dc7f703229bcb7b3b21d9
  2. c227adc4c8ab8854dd8cc5764ce63deb1b
@rverma-dev rverma-dev added the bug Something isn't working label Aug 16, 2023
@korri123
Copy link

korri123 commented Jan 23, 2024

To add to this, here is a reproducible example:

    @Test
    fun `test double quotes csvParser`() {
        // throws exception currently
        val csv = """
            " ""T"" ", "t"
        """.trimIndent()
        csvReader().readAll(csv)
    }

Edit: after code inspection this issue is unrelated to double quotes but has to do with parser not handling space between columns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants