I use steam to enable multiplayer game. Everything is ok. But if the host user name is Chinese. I get the FindSessions result. Using SessionSearch->SearchResults[i].Session.OwningUserName to get the host name, it is gibberish. For example: the host name is “无月天”, but the OwningUserName is “???”, how can I conversion the character?
Use the same encoding, like utf8.
some useful marcos:
TCHAR_TO_ANSI
TCHAR_TO_UTF8
UTF8_TO_TCHAR
Thank you for your suggestion. I tried some conversion, but I can’t get the right way. OwningUserName is FString, I see it is L"???". How can I use this marcos?
did you fix it?