Failed to join lobby by code: lobby code 'MDDFHD' contains an invalid character '' (U+200B) at ind

I dont understand whats going on, im copying a pasting the exactly lobby code in a textmeshpro input text and using that as the join lobby code in :

string privateMatchJoinCode = GameObject.FindWithTag("PrivateMatchJoinCode").GetComponent<TextMeshProUGUI>().text;
try
{
  
    currentLobby = await LobbyService.Instance.JoinLobbyByCodeAsync(privateMatchJoinCode);

This seems to work
privateMatchJoinCodeInput.Substring(0, 6);

U+200B is a zero width space. This should help: [Solved] Getting 'ZERO WIDTH SPACE'

1 Like

thanks!

No worries :slight_smile: