(highest priority first)
1. [Per-document user override]
2. HTTP header (or other protocol information)
3. Self-identification (<meta> for HTML, encoding for XML, @charset for CSS)
<meta>
encoding
@charset
4. 'charset' parameter on links
5. [User preferences/heuristics]
François Yergeau & Martin Dürst
36 of 107