code: public Charset getCharset() {
          String charset = getParameter(PARAM_CHARSET);
          return (charset != null ? Charset.forName(unquote(charset)) : null);
      }
docs: Return the character set, as indicated by a charset parameter, if any.
  
  @return the character set, or  null if not available.