List of utility methods to do ASCII Check
boolean | isContainsNonAscii(String string) Checks each char in a string to see if the string contains any char values greater than those used in ASCII. string = Normalizer.normalize(string, Normalizer.Form.NFD); for (char c : string.toCharArray()) { if (c >= '\u007F') { return true; return false; |