utf 8 - Specifying a character set in HTTP headers -
when using google pagespeed tester, following:
the following resources have no character set specified in http headers. specifying character set in http headers can speed browser rendering.
http://www.ntainc.com/
i have searched everywhere, , can't seem figure out why isn't "reading" charset. have listed in html document header:
<meta charset="utf-8">
and in web.config file:
<?xml version="1.0" encoding="utf-8"?>
and there .htaccess file:
adddefaultcharset utf-8
i believe our server iis. missing?
the warning referring http content-type
header. being sent webserver client this:
content-type: text/html
it needs sent instead:
content-type: text/html; charset=utf-8
you need check webserver configuration. .htaccess
addition should adding charset
attribute header, apparently not. either put in wrong .htaccess
file, or server ignoring it.
the fact html contains <meta charset>
tag irrelevant warning, html arbitrary data inside of http response body (though allow html5-enabled client process utf-8 encoded html correctly).
your web.config
charset irrelevant, interpreted webserver, not client.
Comments
Post a Comment