I tried it my self now, but I must admit, my jetty is a very old one (4.2., but does everything the way I need it). I compared it to tomcat (4.1.29, old too). I checked the content type with the following code:
URL tomcatUrl = new URL("http://localhost:18080/ppi/jobperform/headertest")//tomcat;
URLConnection tconnect = tomcatUrl.openConnection();
System.out.println("tomcat: " + tconnect.getContentType());
URL jettyUrl = new URL("http://localhost:13818/ppi/jobperform/headertest")//jetty;
URLConnection jconnect = jettyUrl.openConnection();
System.out.println("jetty: " + jconnect.getContentType());
And the result was as follows:
Servlet code:
response.setContentType("");
response.getWriter().write("Return");
=>
tomcat: ;charset=ISO-8859-1
jetty:
Servlet code:
response.setContentType("text/plain");
response.getWriter().write("Return");
=>
tomcat: text/plain;charset=ISO-8859-1
jetty: text/plain
Servlet code:
response.setContentType("text/plain;charset=UTF-8");
response.getWriter().write("Return");
=>
tomcat: text/plain;charset=UTF-8
jetty: text/plain;charset=UTF-8
So it looks as if the older jetty does exactly what you want, while tomcat does what you got from the newer jetty.