[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] configuration property for jetty to set character encoding
|
On 8/2/11 5:24 PM, Yoel Spotts wrote:
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
(BTW, I posted this to user@xxxxxxxxxxxxxxxxxx
<mailto:user@xxxxxxxxxxxxxxxxxx> as well since I’m not sure which one is
the correct place)
Afair, Jetty's default for request (and hence, I guess, also response)
character encoding is UTF-8.
According to https://jira.codehaus.org/browse/JETTY-1153, you should be
able to control that with a system property.
Hope that helps!
Alex-
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature