You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by br...@apache.org on 2011/03/28 16:56:54 UTC
svn commit: r1086262 - /thrift/trunk/lib/csharp/src/Protocol/TJSONProtocol.cs
Author: bryanduxbury
Date: Mon Mar 28 14:56:53 2011
New Revision: 1086262
URL: http://svn.apache.org/viewvc?rev=1086262&view=rev
Log:
THRIFT-1119. csharp: TJSONProtocol fails to UTF8 decode strings
Patch: guoyunfeng
Modified:
thrift/trunk/lib/csharp/src/Protocol/TJSONProtocol.cs
Modified: thrift/trunk/lib/csharp/src/Protocol/TJSONProtocol.cs
URL: http://svn.apache.org/viewvc/thrift/trunk/lib/csharp/src/Protocol/TJSONProtocol.cs?rev=1086262&r1=1086261&r2=1086262&view=diff
==============================================================================
--- thrift/trunk/lib/csharp/src/Protocol/TJSONProtocol.cs (original)
+++ thrift/trunk/lib/csharp/src/Protocol/TJSONProtocol.cs Mon Mar 28 14:56:53 2011
@@ -1058,7 +1058,7 @@ namespace Thrift.Protocol
public override String ReadString()
{
- return ReadJSONString(false).ToString();
+ return utf8Encoding.GetString(ReadJSONString(false));
}
public override byte[] ReadBinary()