commit | f02d43772f496fa5cc79bfcf264c474513a8425f | [log] [tgz] |
---|---|---|
author | Bryan Duxbury <bryanduxbury@apache.org> | Mon Mar 28 14:56:53 2011 +0000 |
committer | Bryan Duxbury <bryanduxbury@apache.org> | Mon Mar 28 14:56:53 2011 +0000 |
tree | 38ea3f72393cc501a94bf2f0924b6cecc72dc29a | |
parent | 137fea686ee77a6f61e60f8201459df9c6038ab9 [diff] |
THRIFT-1119. csharp: TJSONProtocol fails to UTF8 decode strings Patch: guoyunfeng git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1086262 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/csharp/src/Protocol/TJSONProtocol.cs b/lib/csharp/src/Protocol/TJSONProtocol.cs index e2834f8..7c88f0f 100644 --- a/lib/csharp/src/Protocol/TJSONProtocol.cs +++ b/lib/csharp/src/Protocol/TJSONProtocol.cs
@@ -1058,7 +1058,7 @@ public override String ReadString() { - return ReadJSONString(false).ToString(); + return utf8Encoding.GetString(ReadJSONString(false)); } public override byte[] ReadBinary()