I have the following code, converted to C# from an old VB6 program. The VB6 had used the old Winsock, which could accept a String argument, but the C# program uses System.Net.Socket which wants a byte array.
byte[] msg = Encoding.UTF8.GetBytes(tempString);
_TCPConn.Send(msg);
tempString has
0x0002 (' ')
0x0000 ('\0')
0x0000 ('\0')
0x0000 ('\0')
0x0080 (' ')
0x006d ('m')
0x0068 ('h')
But msg gets an extra byte
0x02
0x00
0x00
0x00
**0xc2**
0x80
0x6d
0x68
Where is that "c2" coming from?