Best way to convert from a char array to an FString

I would recommend using the decode macros:

FString Fs = FString(ANSI_TO_TCHAR(arr));
FString Fs = FString(UTF8_TO_TCHAR(arr));

There are plenty of macros. Make sure you terminare your char array with the null terminator ‘\0’.

Cheers,
Moss

2 Likes