This question already has an answer here:
If a web page has,
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
…
</head>
but the http header has
Content-Type text/html; charset=UTF-8
Then what encoding is assumed?
In HTML5 the priority is defined as:
<meta http-equiv="Content-Type">
or<meta charset>
depending on attribute order.See http://www.w3.org/html/wg/drafts/html/master/syntax.html#determining-the-character-encoding for the gory details.