I have a test.html
file on server. The file itself is saved with UTF-8
encoding.
But I explicitly specified <meta charset="ISO-8859-1">
in the file content.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="5">
<meta charset="ISO-8859-1">
</head>
<body>
<h1>My Website 报喜不能不</h1>
<p>Some text...</p>
</body>
</html>
Since the page contains some Chinese characters, I am expecting some client-side displaying error. But no errors. And in Firefox page info, it says the page encoding is UTF-8. Seems the <meta charset="ISO-8859-1">
is not effective.
Why?