Just to update everyone, this HTTP header issue *was* a bug in my container (Jetty 6 snapshot), not in Wicket. It turns out that, according to the specs, the charset in the content type HTTP header can also be set *implicitly* with HttpServletResponse.setLocale() (following default encodings specified in the deployment descriptor or the servlet container), so long as neither setContentType nor (in 2.4) setCharacterEncoding have been called first.
Unlike the non-Wicket test servlet with which I had been comparing it in increasing bafflement, the Wicket servlet calls setLocale as well as setContentType. The bug was that Jetty's implementation of setContentType (unlike its implementation of setCharacterEncoding) failed to flag the encoding as set *explicitly*. Thus when setLocale was subsequently called by Wicket, Jetty was overwriting the locale specified with setContentType with its default encoding for that locale. I've notified the Jetty developers and they rapidly patched this bug in Response.java in the latest snapshot (subversion revision 563 +), so it should now work. Presumably, there's a similar bug with the Maven Jetty 6 plugin. If you want to patch it yourself, you'll need to make sure the boolean _explicitEncoding is flagged true if a charset is specified with setContentType, in Response.java. Sorry it took me so long to work out what was going on. Still, there may be other good reasons to update to Servlet spec 2.4 and I'm certainly not going to stand in the way of progress. Benjamin Hawkes-Lewis (webben) -- View this message in context: http://www.nabble.com/can+we+upgrade+to+servlet+2.4--t1707027.html#a4661503 Sent from the Wicket - Dev forum at Nabble.com. ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 _______________________________________________ Wicket-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop