You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King, III (JIRA)" <ji...@apache.org> on 2015/12/08 22:23:11 UTC

[jira] [Updated] (THRIFT-449) The wire format of the JSON Protocol may not always be valid JSON if it contains non-UTF8 encoded strings

     [ https://issues.apache.org/jira/browse/THRIFT-449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James E. King, III updated THRIFT-449:
--------------------------------------
    Priority: Minor  (was: Major)

> The wire format of the JSON Protocol may not always be valid JSON if it contains non-UTF8 encoded strings
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: THRIFT-449
>                 URL: https://issues.apache.org/jira/browse/THRIFT-449
>             Project: Thrift
>          Issue Type: Bug
>    Affects Versions: 0.1
>            Reporter: Chad Walters
>            Priority: Minor
>
> Valid JSON is always Unicode. The JSONProtocol does not always have a wire format that conforms to this -- strings that are not UTF8 encoded can end up writing bytes into the transport that are not valid UTF8.
> I am trying to come up with a way to handle this that doesn't entail escaping every byte above 0x7F into a 6 byte escape sequence "\uXXXX". Suggestions welcomed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)