GTmetrix!

Salut. Cine imi poate spune ce inseamna aceasta functie Avoid a character set in the meta tag?
Uite aici un raspuns:
Cod:
Use a HTTP header rather than a meta tag. Implementing that depends on what server-side tech you are using.

If you are generating your content using PHP, put this at the top of your page:

header("Content-Type: text/html; charset=utf-8");
If you are using any other server-side programming language, there must be a similar option.

Alternatively, if you are using Apache, you can do it using htaccess directives as follows:

AddType 'text/html; charset=UTF-8' html
And if you're using nginx, put this in your config:

more_set_headers -t 'text/html' 'Content-Type: text/html; charset=utf-8';

sursa: https://stackoverflow.com/questions...t-in-the-meta-tag-and-specify-a-character-set
 
Loading...
Back
Sus