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

    • Sub-task
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 0.10.0
    • PHP - Library
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: