private static Charset charset(String... names) {
        for (String name : names) {
            try {
                return Charset.forName(name);
            } catch (IllegalCharsetNameException | UnsupportedCharsetException e) {
                /* pass */
            }
        }
        // The only single-byte charset extended charset that must be present on every Java platform
        return StandardCharsets.ISO_8859_1;
    }
@param names jvm charset names
@return the first of the given charsets that exists in the current JVM,
or ISO_8859_1 if none exists
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-html-module/src/main/java/org/apache/tika/parser/html/charsetdetector/CharsetAliases.java