Well, functions to determine if text is unicode don't always work. Why not start out by sending an ASCII header string, then use that string to tell the server what kind of data follows.
Originally posted by stovellp
If I get a request sent to the server, and I call the microsoft function IsTextUnicode or whatever its called on the string they give me, and if its in unicode I call send() and cast the information im sending as a char * (it will be in unicode), is that safe? If the request isn't in unicode I'll handle it as ASCII.