From f02d43772f496fa5cc79bfcf264c474513a8425f Mon Sep 17 00:00:00 2001 From: Bryan Duxbury Date: Mon, 28 Mar 2011 14:56:53 +0000 Subject: [PATCH] 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 --- lib/csharp/src/Protocol/TJSONProtocol.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.17.1