code: static boolean isCharsetSupported() throws IOException {
      try {
        ZipFile.class.getConstructor(new Class[] { File.class, Charset.class });
        return true;
      }
      catch (NoSuchMethodException e) {
        return false;
      }
    }
docs: Returns <code>true</code> if charsets are supported in this JRE.