You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2014/12/10 16:06:12 UTC
[jira] [Commented] (THRIFT-2779) PHP TJSONProtocol encode unicode
into UCS-4LE which can't be parsed by other langurage bindings
[ https://issues.apache.org/jira/browse/THRIFT-2779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14241208#comment-14241208 ]
ASF GitHub Bot commented on THRIFT-2779:
----------------------------------------
GitHub user llhe opened a pull request:
https://github.com/apache/thrift/pull/313
Fix THRIFT-2779 - PHP TJSONProtocol encode unicode into UCS-4LE which can't be parsed by other langurage bindings
Fix THRIFT-2779
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/llhe/thrift t2779
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/thrift/pull/313.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #313
----
commit 2c6e7d06161775d7dea2ba6c791692ec66a2aa5f
Author: Liangliang He <ll...@gmail.com>
Date: 2014-12-10T15:01:24Z
Fix THRIFT-2779 - PHP TJSONProtocol encode unicode into UCS-4LE which can't be parsed by other langurage bindings
----
> PHP TJSONProtocol encode unicode into UCS-4LE which can't be parsed by other langurage bindings
> -----------------------------------------------------------------------------------------------
>
> Key: THRIFT-2779
> URL: https://issues.apache.org/jira/browse/THRIFT-2779
> Project: Thrift
> Issue Type: Sub-task
> Components: PHP - Library
> Reporter: He Liangliang
> Assignee: Jens Geyer
> Priority: Critical
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)