I am currently building a C++ application that communicate via socket to a C# application. My C++ app sends wchar_t* via socket.
Here is an overview of what is send :
<!-- Normal xml file--
Here is what I receive on the other side (I do a stream.read to a byte array and use UTF8Encoding.GetString() to convert the byte array to a readable string)
<\0!\0-\0-\0 \0N\0o\0r\0m\0a\0l\0 \0x\0m\0l\0 \0f\0i\0l\0e\0-\0-
Is it a marshalling problem? What do you say? Why is it 0 extended and why unicode caracter doesn't appear on the C# side?