I don't want to support all ascii characters for title display name and the player's account username and password. In addition, I want to create restrictions for the length(for example up to 20 characters) in CloudScript. Is it possible to only allow a range of ascii character, for example the range 32-512?
If the player uses characters other than ascii range 32-512, then I want to cancel creating/updating the PlayFab account and I want to display a message in my application. For example: "One or more characters are not supported. Please only use supported characters in your display name/username/password." or "Your display name/username/password is too long. It must be less than 21 characters."
For the moment, I only use client API calls like PlayFabClientAPI.UpdateUserTitleDisplayName, PlayFabClientAPI.AddUsernamePassword and PlayFabClientAPI.RegisterPlayFabUser. But I can't verify with these client API calls if a player uses unsupported characters or if the string is too long.
How can I find out in CloudScript if a string is too long or if a player only uses valid characters when he creates/updates a PlayFab (guest) account?