This’s my code:
Socket->Send((uint8*)TCHAR_TO_UTF8(*StringValue), StringValue.Len()*sizeof(TCHAR), SocketSent);