I'm using Dictionary to get i18n messages from a static JS file. My JS file is UTF-8 encoded, but as a French guy it contain many "non ASCII" characters
Using Firefox live HTTP header I dumped the HTTP request on this JS resource : http://localhost:8888/com.sfr.bios.rc.CADM/js/CadmMessages.js GET /com.sfr.bios.rc.CADM/js/CadmMessages.js HTTP/1.1 Host: localhost:8888 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 Accept: */* Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localhost:8888/com.sfr.bios.rc.CADM/CADM.html If-Modified-Since: Wed, 04 Mar 2009 16:19:38 GMT Cache-Control: max-age=0 HTTP/1.x 200 OK Content-Type: application/x-javascript Content-Length: 3701 Last-Modified: Mon, 09 Mar 2009 16:24:18 GMT Server: Jetty(6.1.x) As you can see, the Jetty server does not specify any encoding in the content-type header, so I suppose my browser is using the platform native one : Windows CP1252 Is there any simple way to force Jetty to include such encoding header ? As GWT resources are required AFAIK to be UTF-8, what about this to be the default configuration for hosted mode server ? Cheers, Nicolas --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
