Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-449

The wire format of the JSON Protocol may not always be valid JSON if it contains non-UTF8 encoded strings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 0.1
    • 0.10.0
    • None
    • None

    Description

      Valid JSON is always Unicode. The JSONProtocol does not always have a wire format that conforms to this – strings that are not UTF8 encoded can end up writing bytes into the transport that are not valid UTF8.

      I am trying to come up with a way to handle this that doesn't entail escaping every byte above 0x7F into a 6 byte escape sequence "\uXXXX". Suggestions welcomed.

      Attachments

        Activity

          People

            jfarrell Jake Farrell
            cwalters Chad Walters
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: