将 wchar_t* 类型转换为托管 UTF-8 字符串
如何在 C++/CLI 中将 wchar_t*
类型转换为托管 UTF-8
字符串?
How can I convert wchar_t*
type to a managed UTF-8
string in C++/CLI?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设您的意思是“托管 UTF-8 字符串”(尽管托管字符串是 UTF16),请使用
有关示例和详细信息,请参阅 如何:MSDN 上的各种字符串类型之间进行转换。
Assuming you mean
System::String
by "managed UTF-8 string" (although managed strings are UTF16) useFor samples and details see How to: Convert Between Various String Types on MSDN.