客户端: byteData = Encoding.UTF8.GetBytes(message);

服务端: string receivedString = Encoding.UTF8.GetString(byteData,0,length);

相关文章: