How can I convert wchar_t* type to a managed UTF-8 string in C++/CLI?
1 Answer
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.
System.Stringuses.