bootfit — 2012-07-02T19:05:01-04:00 — #1
Apologies if this is in the wrong thread...
I'm running Google site speed checker on my site and the following issue is flagged:
Specify a character set
Specifying a character set early for your HTML documents allows the browser to begin executing scripts immediately.
Suggestions for this page
The following resources have no character set specified in their HTTP headers. Specifying a character set in HTTP headers can speed up browser rendering.
I have the follwoing in my page head:
...so what am I missing?
ralphm — 2012-07-02T19:42:16-04:00 — #2
That is more flagging what's sent by the server, I believe.
bootfit — 2012-07-02T21:08:07-04:00 — #3
Ah right-O. Are you able expand on what I have to do to resolve this?
ralphm — 2012-07-02T21:13:49-04:00 — #4
It's not really something I understand very well. This tries to explain what headers are:
and this might help a bit, too:
It may depend on the type f server you have and your access privileges how much you can do about this ... assuming it's even the issue. Can you post a link to the site?
system — 2012-07-04T12:44:43-04:00 — #5
It boils down to creating a .htaccess file with the following line in it:
AddCharset UTF-8 .html
As they say, this "will cause all files with the extension .html to be served as UTF-8", directly or in the subdirectory tree where the .htaccess file resides.
Also, a HTML5 charset doesn't exist. And the whole stuff here is web server related, it's not HTML related.