in src/main/java/org/apache/sling/engine/impl/parameters/Util.java [183:198]
private static String validateEncoding(final String encoding) {
if (encoding != null && encoding.length() > 0) {
// check for the existence of the encoding
try {
"".getBytes(encoding);
return encoding;
} catch (UnsupportedEncodingException e) {
// log.warn("HttpMulitpartPost: Character encoding {0} is not "
// + "supported, using default {1}", formEncodingParam,
// DEFAULT_ENCODING);
}
}
// no encoding or unsupported encoding
return getDefaultFixEncoding();
}