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.

>          }
>      }

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to