Skip to content

Commit 8184959

Browse files
committed
TCP接受转码问题
1 parent 99d9583 commit 8184959

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CommunTools/FrmBaseCom/Frm_TCPClient.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public void ReceiveMsg()//接收处理线程部分
186186
}
187187
else
188188
{
189-
string bufOri = Encoding.UTF8.GetString(buf);
189+
string bufOri = Encoding.ASCII.GetString(buf);
190190

191191
if (buf[0] == 0) // 表示接收到的是消息数据;
192192
{

0 commit comments

Comments
 (0)