You can add this lines in the conf/app-default.xml <servlet servlet-name="resin-file" servlet-class="com.caucho.servlets.FileServlet"> <init> <character-encoding>utf-8</character-encoding> </init> </servlet>
Yuan Hong ----- Original Message ----- From: "askxuefeng" <[EMAIL PROTECTED]> To: <resin-interest@caucho.com> Sent: Friday, January 05, 2007 8:26 PM Subject: [Resin-interest] Resin 3.1.0's bug in html charset > Hi, > I just upgrade Resin 3.0.21 to Resin 3.1.0, and the html output encoding > is not set correct, browser (both IE & Firefox) cannot display > UTF-8-encoding html page correctly: > > index.html with encoding "UTF-8": > <html> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> > </head> > <body> utf-8 encoding text... </body> > </html> > > Here is my trace log: > > GET /index.html HTTP/1.1 > Host: localhost:8080 > > HTTP/1.x 200 OK > Server: Resin/3.1.0 > Etag: "H9uOAyUVMI5" > Last-Modified: Fri, 05 Jan 2007 03:23:24 GMT > Accept-Ranges: bytes > Content-Type: text/html; charset=iso-8859-1 > Content-Length: 370 > Date: Fri, 05 Jan 2007 03:25:08 GMT > > Resin 3.1.0 always add "Content-Type: text/html; charset=iso-8859-1" to > static html response but should not. > > Yours, > sincerely, > > Liao Xuefeng > Jan. 5, 2007 > > > _______________________________________________ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest _______________________________________________ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest