Fantacy

W3C documents and HTML specification lists the following precedence rules:
  1. HTTP Content-Type
  2. XML declaration
  3. meta charset declaration
  4. charset attribute on elements