Send Persian string from C# server to python client with socket
<p>I use socket programming to connect a python program to a C# program.
python code is client and C# code is server. C# code send a string to python with this code:</p>

<pre><code>byte[] R=Encoding.UTF8.GetBytes("one string");
Client.Send(R);
</code></pre>

<p>and i receive data in python code with this:</p>

<pre><code>data=sock.recv(16)
amount_received+=len(data)
print &gt;&gt; sys.stderr, 'received "%s" %data 
</code></pre>

<p>When i print recieved data: <code>print &gt;&gt; sys.stderr, 'received "%s" %data</code> , I just see some question marks. 
what must I do?</p>

<p>try </p>

<pre><code>byte[] R = Encoding.Default.GetBytes("Persian String"); 
</code></pre>

c# python sockets encode