From: Bryan Duxbury Date: Mon, 28 Mar 2011 14:56:53 +0000 (+0000) Subject: THRIFT-1119. csharp: TJSONProtocol fails to UTF8 decode strings X-Git-Tag: 0.7.0~130 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=f02d43772f496fa5cc79bfcf264c474513a8425f;p=common%2Fthrift.git 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 e2834f8c..7c88f0fb 100644 --- a/lib/csharp/src/Protocol/TJSONProtocol.cs +++ b/lib/csharp/src/Protocol/TJSONProtocol.cs @@ -1058,7 +1058,7 @@ namespace Thrift.Protocol public override String ReadString() { - return ReadJSONString(false).ToString(); + return utf8Encoding.GetString(ReadJSONString(false)); } public override byte[] ReadBinary()