heroiclabs / nakama-unreal

Unreal client for Nakama server.
Apache License 2.0
200 stars 61 forks source link

NClientInterface::getAccount() not working for non ascii characters #45

Closed mgossage closed 1 year ago

mgossage commented 3 years ago

Repro steps:

  1. Create an account
  2. Using developer console change the username or display name to use accented characters. (eg. abcöäüß, also seems to fail with french, spanish and chinese characters)
  3. Using NClientInterface::getAccount() get the account.
  4. Using breakpoints (or similar) examine the NAccount returned in the callback
  5. Non-ascii characters have been replaced by a '?' image
lugehorsam commented 3 years ago

Hey @mgossage, are you testing this on Windows? I was able to reproduce your issue in the Windows terminal because my system wasn't using UTF-8 as its default encoding. Once I switched to UTF-8, the issue was resolved.

(1) Go to administrative language settings (2) Change system locale (3) Check Beta: Use Unicode UTF-8 for worldwide language support box (4) Restart PC

mgossage commented 3 years ago

Tried that, exactly the same error. Also the question marks seem to be actual question marks and not just out of range values. I will dig some more. image

lugehorsam commented 3 years ago

@mgossage okay thanks for digging a bit more. I also looked at my breakpoint and saw the correct UTF-8 chars in your example.

lugehorsam commented 1 year ago

@mgossage this should be resolved in the latest release but feel free to reopen and let me know if not.