I was able to fix it. Here’s the function I wrote:
FString Fixed;
for (int i = 0; i < BrokenString.Len(); i++)
{
const TCHAR c = BrokenString* - 1;
Fixed.AppendChar(c);
}
return Fixed;
I hope it might work out for someone out there who stuggles! Just note that it will only work if the entire string is broken.