Pivot
  1. Pivot
  2. PIVOT-644

Improve JSONSerializer and CSVSerializer to ignore a BOM at the beginning of file

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.5.2, 2.0
    • Component/s: core-json
    • Labels:
      None
    • Environment:
      Windows XP SP3, Java JDK 1.6.0_16

      Description

      A "true" UTF-8 file that includes the UTF-8 BOM at the beginning (0xEF, 0xBB, 0xBF) produces a SerializationError on the BOM character.

      1. svn.diff
        0.5 kB
        Roger Whitcomb

        Activity

        Hide
        Greg Brown added a comment -

        Nice. Applied to Pivot 1.5.x and 2.0.

        Show
        Greg Brown added a comment - Nice. Applied to Pivot 1.5.x and 2.0.
        Hide
        Roger Whitcomb added a comment -

        Attached patch solves the issue by ignoring the BOM if present at the beginning of the file.

        Show
        Roger Whitcomb added a comment - Attached patch solves the issue by ignoring the BOM if present at the beginning of the file.

          People

          • Assignee:
            Unassigned
            Reporter:
            Roger Whitcomb
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 10m
              10m
              Remaining:
              Remaining Estimate - 10m
              10m
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development