Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2336 UTF-8 sent by PHP as JSON is not understood by TJsonProtocol
  3. THRIFT-2345

Delphi: UTF-8 sent by PHP as JSON is not understood by TJsonProtocol

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.2
    • Delphi - Library
    • None
    • Patch Available

    Description

      Delphi fails to read hex-encoded JSON with character values > 8 bit.

      Example (taken from THRIFT-2336):

      Whenever I have our Thrift-For-Php send non-latin utf-8 characters, e.g. "Русское Название" (Russian), I get this:

      {"3":{"str":"\u0420\u0443\u0441\u0441\u043a\u043e\u0435 \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435"},"6":{"tf":0}}
      

      which is a perfectly valid JSON, and I don't mind it being encoded like that.

      Attachments

        Activity

          People

            jensg Jens Geyer
            jensg Jens Geyer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: