Prevent double byte characters
Is there a way to prevent double byte characters being used user inputted text fields ? I only want charcaters in the range of (! - ~ ) I need to interact with an old ini file that doesn't like double byte characters.
Its a username and password field so I was thinking of using a regex maybe. But just wondering if there is another way of banning them outright
|