Encoding, language etc. comes first