One of hundreds of answers available with our premium content service.
A: It is possible to check for Latin 1 characters using Javascript, though the usual conditions apply; if Javascript is not enabled, no check will be made, so it is better to do this kind of thing on the server side, or double-up with both.
One relatively simple way to check for non-Latin characters would be to define a single string that contains all valid Latin 1 characters. Loop through each character in the input string and check it is in the reference string. The working example below includes utilities to generate the reference character set and non-Latin characters to test.
… full answer hidden
Premium members click below for full answer
Is it possible to filter non-Latin 1 characters?
Your premium content subscription is a single payment that gives you: