Right. AbstractStringLayout says:

    @Override
    public Charset getCharset() {
        return charset;
    }

    /**
     * @return The default content type for Strings.
     */
    @Override
    public String getContentType() {
        return "text/plain";
    }

Gary



On Tue, Mar 6, 2018 at 2:52 PM, Remko Popma <remko.po...@gmail.com> wrote:

> (Away from pc) by “use”, do you mean that the string returned by
> getContentType() doesn’t include a charset?
>
> From memory, I remember the only place this method is used is in the
> HtmlAppender. Are there other places?
>
> (Shameless plug) Every java main() method deserves http://picocli.info
>
> > On Mar 7, 2018, at 1:37, Gary Gregory <garydgreg...@gmail.com> wrote:
> >
> > Hi All,
> >
> > It looks
> > like org.apache.logging.log4j.core.layout.AbstractStringLayout.
> getContentType()
> > does NOT use its charset.
> >
> > Can anyone foresee a problem with fixing this?
> >
> > Gary
>

Reply via email to