Make Java TbinaryProtocol enfore UTF-8
authorMark Slee <mcslee@apache.org>
Sat, 3 Nov 2007 04:48:43 +0000 (04:48 +0000)
committerMark Slee <mcslee@apache.org>
Sat, 3 Nov 2007 04:48:43 +0000 (04:48 +0000)
commit52182d674eff80ac99da38b34273279bce9a327b
treecea59463c0a348bd5ea8f4b71a5ad51e8f7df1c8
parentffc21fb792b152ed6b45c4e83b4c5fd295465007
Make Java TbinaryProtocol enfore UTF-8

Summary: Java Strings have to have an encoding, they can't just be binary. The constructor and getBytes() method enforce this, so we are standardizing on UTF-8 to avoid string-mangling.

Reviewed By: dreiss

Test Plan: Code all works the exact same in the normal case, and doesn't mangle characters beyond ASCII or ISO-LATIN-1

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665321 13f79535-47bb-0310-9956-ffa450edef68
lib/java/src/protocol/TBinaryProtocol.java