Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-851

Unicode issue in JSON encoding from Java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.1
    • 1.7.2
    • java
    • None

    Description

      There is an issue in Avro's java code when encoding a GenericData as JSON in GenericData#writeEscapedString().
      In the default clause, it must be the hexadecimal value of the character that must be written and not the string itself, otherwise the built JSON string is not valid.

      Attachments

        1. AVRO-851.patch
          2 kB
          Jeff Mesnil

        Issue Links

          Activity

            People

              jmesnil Jeff Mesnil
              jmesnil Jeff Mesnil
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: