I have a page whose encoding is declared with
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
But when I enter the page, another encoding (ISO) is chosen in the browser. I have tried to set the encoding by a PHP method
header('Content-type: text/html; charset=utf-8');
But it also didn't help. All source files are encoded in UTF-8 without a BOM. The only solution, which I tried, and it had worked, was setting the encoding in the .htaccess file by adding the AddDefaultCharset UTF-8
line, but then other pages on the server were not displayed correctly. How can I solve this problem?
Disable the default charset:
AddDefaultCharset Off