code: private static boolean nonASCII(String s) {
      for (int i = 0; i < s.length(); i++) {
        if (s.charAt(i) > 0x7F) {
            return true;
        }
      }
      return false;
    }
docs: Returns true if a string contains any non-ASCII characters.