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

PHP TJSONProtocol encode unicode into UCS-4LE which can't be parsed by other language bindings

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.10.0
    • Component/s: PHP - Library
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      TJSONProtocol serialize string using json_encode which convert unicode character into UCS-4LE format, which can't be accepted by other language bindings, e.g. Java library. The simplest way to fix it is change UCS-4LE encoding to UTF8 encoding.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                phongphan Phongphan Phuttha
                Reporter:
                heliangliang He Liangliang
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: