Reputation: 12920
How can I convert wchar_t*
type to a managed UTF-8
string in C++/CLI?
Upvotes: 0
Views: 847
Reputation: 70369
Assuming you mean System::String
by "managed UTF-8 string" (although managed strings are UTF16) use
String ^systemstring = gcnew String(YoutrWCharString);
For samples and details see How to: Convert Between Various String Types on MSDN.
Upvotes: 2