我目前正在构建一个通过套接字与 C# 应用程序通信的 C++ 应用程序。我的 C++ 应用程序通过套接字发送 wchar_t*。
以下是 send 的概述:
<!-- Normal xml file--
这是我在另一边收到的内容(我对字节数组执行了 stream.read 并使用 UTF8Encoding.GetString() 将字节数组转换为可读字符串)
<\0!\0-\0-\0 \0N\0o\0r\0m\0a\0l\0 \0x\0m\0l\0 \0f\0i\0l\0e\0-\0-
是编组问题吗?你说什么?为什么它是 0 扩展,为什么 unicode 字符不出现在 C# 端?