Charset declaration is missing or occurs too late in the HTML

Charset declaration is missing or occurs too late in the HTML

A character encoding declaration is required. It can be done with a <meta> tag in the first 1024 bytes of the HTML or in the Content-Type HTTP response header. Learn more about declaring the character encoding.

The UTF Charset declaration appears on my pages around character 1800

If a character is a byte … then we need too be at the very top … so as to make Google happy

Conversely, Google wants …

… html.scroll-smooth

to appear within one of the ‘landmark areas’ eg: head, body, footer … and it doesn’t

image

You can fix this yourself in the Project Settings → Template section.

Or in the htacces with:

RewriteEngine On

# HTTP Content-Types
AddCharset UTF-8 .html

Great - thanks guys .. I’ll try switching things around and see if Pagespeed is happier … and it all still works : )

Should that not be the default setting by elements?

I think so as the UTF Charset declaration must be within the ‘first 1024 bytes’ (see screenshot in first post) - otherwise it fails to be recorded as present. By default it seems to appear 1700 - 1800 bytes in

'Course I might be totally misunderstanding. Either way now, no error in Pagespeed : )