[jetty-user] configuration property for jetty -- character encoding
Yoel Spotts <[email protected]> Mon, 1 Aug 2011 11:50:56 -0700
| Newsgroups | gmane.comp.java.jetty.support |
|---|---|
| Message-ID | <684473EA13B8F743BE52D19C10DD563801FDB177AB@EXDMBX003-3.exch003intermedia.net> |
Is there a way to configure jetty such that all responses of type text/html will use a specific character encoding (like utf-8)? I realize I can set a header with content-type = "text/html; charset=UTF-8" or I can call response.setCharacterEncoding("utf-8"), but I am looking for a global configuration for every response. IIRC, Apache has AddDefaultCharset which will cause the http header to be generated for every page. Does jetty have such a thing?
Thanks
Yoel Spotts | Senior Software Engineer | nexidia<http://www.nexidia.com/> | O: 404.495.7220 x4007 | [cid:[email protected]] <http://twitter.com/Nexidia> [cid:[email protected]] <http://www.linkedin.com/companies/nexidia> [cid:[email protected]] <http://www.youtube.com/user/NexidiaTV>
image001.png
(image/png, 616 B) - not displayed
image002.png
(image/png, 579 B) - not displayed
image003.png
(image/png, 360 B) - not displayed