Hi Konstantin, > -----Original Message----- > From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] > Sent: Saturday, November 9, 2013 6:24 AM > To: Tomcat Developers List > Subject: Re: svn commit: r1540077 - in > /tomcat/trunk/webapps/examples/jsp/jsp2/jspx: svgexample.html > textRotate.html textRotate.jspx > > 2013/11/8 <kpreis...@apache.org>: > > Author: kpreisser > > Date: Fri Nov 8 15:28:42 2013 > > New Revision: 1540077 > > > > URL: http://svn.apache.org/r1540077 > > Log: > > Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=55383 > > Improve HTML markup in the examples. > > > > Modified: > > tomcat/trunk/webapps/examples/jsp/jsp2/jspx/svgexample.html > > tomcat/trunk/webapps/examples/jsp/jsp2/jspx/textRotate.html > > tomcat/trunk/webapps/examples/jsp/jsp2/jspx/textRotate.jspx > > > > Modified: > tomcat/trunk/webapps/examples/jsp/jsp2/jspx/svgexample.html > > URL: > http://svn.apache.org/viewvc/tomcat/trunk/webapps/examples/jsp/jsp2/js > px/svgexample.html?rev=1540077&r1=1540076&r2=1540077&view=diff > > > ========================================================== > ==================== > > --- tomcat/trunk/webapps/examples/jsp/jsp2/jspx/svgexample.html > (original) > > +++ tomcat/trunk/webapps/examples/jsp/jsp2/jspx/svgexample.html Fri > Nov 8 15:28:42 2013 > > @@ -1,4 +1,4 @@ > > -<!-- > > +<!DOCTYPE html><!-- > > Licensed to the Apache Software Foundation (ASF) under one or more > > contributor license agreements. See the NOTICE file distributed with > > this work for additional information regarding copyright ownership. > > @@ -16,11 +16,11 @@ > > --> > > <html> > > <head> > > + <meta charset="UTF-8"> > > This *.html file is served with Content-Type of text/html. > > To really serve it with "text/html; charset=UTF-8" the recommended way > is to configure a > AddDefaultCharsetFilter > http://tomcat.apache.org/tomcat-8.0- > doc/config/filter.html#Add_Default_Character_Set_Filter
Thanks. However, for static *.html files I don't see a need to add a charset=UTF-8 value to the Content-Type header, as the browser will get the encoding from the <meta> tag. Regards, Konstantin Preißer --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org