in src/main/java/org/apache/fineract/cn/lang/validation/CheckIdentifier.java [48:61]
static boolean validate(final String obj, final int maximumLength) {
if (obj.length() < 2)
return false;
if (obj.length() > maximumLength)
return false;
try {
return encode(obj).equals(obj);
}
catch (UnsupportedEncodingException e) {
return false; //If we can't encode with UTF-8, then there are no valid names.
}
}