When you send a character via winsock, it is sent as ASCII, a string is after all a sequence of ASCII values. If the connection you were looking at was an HTTP connection, some data will be URL Encoded, the reasonfor this is to prevent data like spaces and commas from being interpretted as something else.