Greetings,
I am developing GWT application where user can enter his details in Japanese. But the \'userid\' and \'password\' should only contain English characters(L
public static boolean isValidISOLatin1 (String s) { return Charset.forName("US-ASCII").newEncoder().canEncode(s); } // or "ISO-8859-1" for ISO Latin 1
For reference, see the documentation on Charset.