What use is the 'encoding' in the XML header?

前端 未结 4 1588
南方客
南方客 2020-12-05 06:15

Looking at the XML header


Am I right to state that the encoding

4条回答
  •  春和景丽
    2020-12-05 06:59

    I think in principle you might have a point that the encoding statement is 'late' in the file, however, the whole first line only uses basic characters. AFAIK, those are the same in almost all encodings, so whatever you decode it as, it'll read anyway.

    Whatever comes after that however, could matter. For example text in a CDATA section could be encoded in a Cyrillic encoding.

提交回复
热议问题