Uploaded image for project: 'Commons CSV'
  1. Commons CSV
  2. CSV-107

CSVFormat.EXCEL.parse should handle byte order marks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Minor
    • Resolution: Unresolved
    • None
    • 1.x
    • Parser
    • None

    Description

      The CSVFormat.EXCEL.parse should consider the byte order marks when reading the input stream. Files with a byte order mark fail to properly parse.

      In my example, I have a starting byte order mark before my headers in a CVS file. The parse fails when trying to get the header via the CSVRecord.get call.

      I marked this as critical because many users will interact with Windows user which will most likely have BOM files.

      Attachments

        1. csv-bom.diff
          32 kB
          Gary D. Gregory
        2. vod.csv
          11 kB
          Kenzley Alphonse

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kenzley Kenzley Alphonse
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 3h
                  3h
                  Remaining:
                  Remaining Estimate - 3h
                  3h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified