On Wed, Oct 18, 2023 at 8:23 PM Michael Osipov <micha...@apache.org> wrote: > > On 2023/10/17 13:58:06 r...@apache.org wrote: > > @@ -51,6 +52,8 @@ public class StatusTransformer { > > response.setContentType("text/html;charset=" + > > Constants.CHARSET); > > } else if (mode == 1) { > > response.setContentType("text/xml;charset=" + > > Constants.CHARSET); > > + } else if (mode == 2) { > > + response.setContentType("application/json"); > > This is brittle. Remember that JSON is always UTF-8, nothing else, but you > haven't set that in the reponse object. Therefore, the writer is set to > ISO-8859-1. I don't know whether anything of the MBeans could contain any > multibyte characters.
Ok, sure, I'll likely add it, but there should not be anything too wild. Rémy > > } > > } > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org > For additional commands, e-mail: dev-h...@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org