You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2014/12/10 21:57:12 UTC
[jira] [Commented] (THRIFT-2779) PHP TJSONProtocol encode unicode
into UCS-4LE which can't be parsed by other language bindings
[ https://issues.apache.org/jira/browse/THRIFT-2779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14241713#comment-14241713 ]
Hudson commented on THRIFT-2779:
--------------------------------
FAILURE: Integrated in Thrift #1397 (See [https://builds.apache.org/job/Thrift/1397/])
THRIFT-2779 PHP TJSONProtocol encode unicode into UCS-4LE which can't be parsed by other langurage bindings (jensg: rev 119869a2041e6348027c161f144b0b3eeefb043c)
* lib/php/lib/Thrift/Protocol/TJSONProtocol.php
> PHP TJSONProtocol encode unicode into UCS-4LE which can't be parsed by other language 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
> Fix For: 0.9.3
>
>
> 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)