[
https://issues.apache.org/jira/browse/THRIFT-1726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jake Farrell closed THRIFT-1726.
--------------------------------
Resolution: Fixed
THRIFT-1766 resolves this issue, closing
> Ruby-1.9: "binary" fields are represented by string whose encoding is "UTF-8"
> -----------------------------------------------------------------------------
>
> Key: THRIFT-1726
> URL: https://issues.apache.org/jira/browse/THRIFT-1726
> Project: Thrift
> Issue Type: Sub-task
> Components: Ruby - Library
> Affects Versions: 0.9
> Environment: JRuby 1.6.8 using "--1.9" command line parameter.
> Reporter: XB
>
> When reading a thrift object using the Thrift::BinaryProtocol and this thrift
> object has a field of type "binary", then accessing this field yields a
> string whose encoding is "UTF-8".
> The encoding should be "ASCII-8BIT" instead. It may be right to assume that
> "string" fields have a character encoding (such as "UTF-8"), but "binary"
> fields do not have a character encoding at all. For these cases, there is the
> pseudo-encoding "ASCII-8BIT" where we deal just with an opaque sequence of
> bytes.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)