Visual Studio 2017 UWP C++でUTF-8のデータからPlatform::String変換する。
UTF-8の文字列データはstd::stringに収納できるので、一旦stringに入れておく。
std::function<Platform::String ^ (std::string)> Utf8ToPlatformString{ [](std::string stin) { std::wstring_convert<std::codecvt_utf8_utf16<wchar_t> > converter; return ref new Platform::String(converter.from_bytes(stin.c_str()).c_str()); } };
///std::string s1;
Platform::String^ test_str = Utf8ToPlatformString(s1);