THRIFT-1119. csharp: TJSONProtocol fails to UTF8 decode strings
authorBryan Duxbury <bryanduxbury@apache.org>
Mon, 28 Mar 2011 14:56:53 +0000 (14:56 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Mon, 28 Mar 2011 14:56:53 +0000 (14:56 +0000)
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

index e2834f8..7c88f0f 100644 (file)
@@ -1058,7 +1058,7 @@ namespace Thrift.Protocol
 
                public override String ReadString()
                {
-                       return ReadJSONString(false).ToString();
+                       return utf8Encoding.GetString(ReadJSONString(false));
                }
 
                public override byte[] ReadBinary()