FString UE4Str = “UE4 C++ 包含中文”;
//FString to std::string
std::string cstr(TCHAR_TO_UTF8(*UE4Str));
//std::string to FString 需要使用UTF8_TO_TCHAR 在转一次
ClientMessage(FString(UTF8_TO_TCHAR(cstr.c_str())));
FString UE4Str = “UE4 C++ 包含中文”;
//FString to std::string
std::string cstr(TCHAR_TO_UTF8(*UE4Str));
//std::string to FString 需要使用UTF8_TO_TCHAR 在转一次
ClientMessage(FString(UTF8_TO_TCHAR(cstr.c_str())));