Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Setting text/javascript encoding to utf8 with Jetty 10.0.16

Hello,

I am using Jetty 10.0.16 and when it serves static _javascript_ files (I have Consts-en.js, Consts-de.js, Consts-fr.js, ...) the encoding is unfortunately not set to utf8 (like it is for the served json files).

Is there a way to enforce that without compiling a custom version of Jetty?

I have searched on the internet and also here:

# find /usr/share/java/jetty-home-10.0.16 -type f -iname \*.prop\*
/usr/share/java/jetty-home-10.0.16/modules/deprecated.properties
/usr/share/java/jetty-home-10.0.16/modules/demo.d/demo-realm.properties
/usr/share/java/jetty-home-10.0.16/modules/demo.d/demo-login.properties
/usr/share/java/jetty-home-10.0.16/modules/sessions/infinispan/remote/resources/hotrod-client.properties
/usr/share/java/jetty-home-10.0.16/modules/jolokia/jolokia-realm.properties
/usr/share/java/jetty-home-10.0.16/modules/logging/jul/resources/java-util-logging-bridge.properties
/usr/share/java/jetty-home-10.0.16/modules/logging/jul/resources/java-util-logging.properties
/usr/share/java/jetty-home-10.0.16/modules/logging/jetty/resources/jetty-logging.properties
/usr/share/java/jetty-home-10.0.16/etc/jdbcRealm.properties

Thank you for any hints
Alex



Back to the top