This thread is resolved. Here is a description of the problem and solution.
Problem:
As soon as I scan the site on Google page speed insights I get the following error in Best Practice:
Properly defines charset Error!
A character encoding declaration is required. It can be done with a tag in the first 1024 bytes of the HTML or in the Content-Type HTTP response header. Learn more about declaring the character encoding. Solution:
As soon as I scan the site on Google page speed insights I get the following error in Best Practice:
Properly defines charset Error!
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.
This happened since I made the redirection based on the browser language.
Is it related? How to fix it?
Hello!
If you suspect the browser language redirect is the issue, you better test and disable it and see if this helps.
Personally, I doubt that that setting causes the problem.
I am not sure if you serve different content for your user and for Google, but I see that you have the declaration for charset already there, and this is one of the recommended ways according to the doc hidden link
Hi Alejandro,
Thank you for the help and clarification.
I checked my website and is set to UTF-8.
You may tell me what I am missing.
Also, when i checked to throw the lighthouse in the inspect its work, just not throw the browsers.