GitHub user phongphan opened a pull request:

    https://github.com/apache/thrift/pull/702

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

    Hi
    
    This should fix THRIFT-2410. The patch is build against Java 1.3.
    The library doesn't appear to have tests and I don't know exactly how to 
reliably test it. So, I have ported a test from Java library[[1 - 
ATest.java](https://gist.github.com/phongphan/cb9abe2794788ec8519a)] and run it 
manually. It seems to work as expected.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/phongphan/thrift THRIFT-2410

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/thrift/pull/702.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 #702
    
----
commit bbb145cd2cf430974fef4e21aec041843ee96cec
Author: Phongphan Phuttha <[email protected]>
Date:   2015-11-18T10:02:37Z

    THRIFT-2410: Add last check for an orphan high surrogate.

commit 551e003675356432d6ddd0fff29d2e756271a5a4
Author: Phongphan Phuttha <[email protected]>
Date:   2015-11-18T10:15:59Z

    THRIFT-2410: Remove unused import.

commit 3fbe3685f733f82d6d048352f62f62323a20ab14
Author: Phongphan Phuttha <[email protected]>
Date:   2015-11-18T12:44:30Z

    THRIFT-2410: Add UTF-16 to UTF-8 converter and use for convert the escaped 
unicode character to UTF-8 byte array.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to