Hello,
It seems TCHAR_TO_UTF8 is deprecated and need to use StringCast<UTF8CHAR>(PtrToTChar) instead.
Wondering if there is way to convert from FString to String with StringCast
Thanks
Hello,
It seems TCHAR_TO_UTF8 is deprecated and need to use StringCast<UTF8CHAR>(PtrToTChar) instead.
Wondering if there is way to convert from FString to String with StringCast
Thanks
Hey,
I know I’m a bit late, but I also found myself searching for this. In my case, I want to cast from UTF8 to TCHAR. This is what I found:
auto Scr = StringCast<TCHAR>(reinterpret_cast<UTF8CHAR*>(PtrToUTF8));
FString result = FString(Scr.Get());
I hope it helps.