Text encoding

Hello everyone!
Have the problem with the encoding only in Shipping and development builds, can’t get this problem in standalone mode. Actually everything works fine and I even can type the Chinese and Russian symbols in chat and can see it perfectly.
The problem just in one text: in server name that I set when I create the session

And then I get it when I search for the servers


I get random symbols when I get the server name in the server list (Everything is fine if I use english)


I bet that it changes when I store information in the server properties - it has different encoding system or something.

Also it would be appreciated if you share the other system to provide server name to the client that search for the servers (if you don’t have that problem).

I finally figured it out. I decided to send numbers through the network and then on a client convert them to the chars.
If anyone will have that problem:
First of all I’ve created this in “h” file of the GameInstance.


In “cpp” file of the GameInstance I’ve created (also at the top you should include string):

(Big thanks for that to a guy from 2019)

UE has that function “Get character as number” that converts character to int (in utf32 I guess)
I add all numbers to extra settings.


Then on the client I convert all of the numbers to chars using the new function.

Works really well for me!

After changes you have to build the project (UE editor should be closed and there should be no running process UE. Sometimes it’s ON even if the editor is closed)