2011/7/23 Mark Thomas <ma...@apache.org>:
> On 23/07/2011 02:11, Luogang Wang wrote:
>> hi,
>>
>> my tomcat version 7.0.16 ;
>>
>> I put this simple html on tomcat webapps ROOT directory.
>>
>> <!doctype html>
>> <html>
>>  <head>
>>   <title> New Document </title>
>>   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
>>  </head>
>>  <body>
>>   hello world!
>>  </body>
>> </html>
>>
>> when request the file from browser ,the http response not have the header
>> of "Content-type:text/html; charset=UTF-8" , just  "Content-type:text/html";
>>
>> I think it should have the charset parameter , why not ? http-equiv not work
>> on tomcat ?
>
> Tomcat does not scan static content for meta tags. If you want to set
> the charset in the HTTP header, you'll need to set it explicitly using a
> JSP, a filter or similar.
>

or if all static HTML files have the same charset you can configure it in
mime-mapping element in your WEB-INF/web.xml

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to