XML file encoding format “utf-8” VS “UTF-8”?

后端 未结 5 417
刺人心
刺人心 2021-02-01 15:46

When the XML file was convert to ASCII. It is different values for user at the three characters of utf and UTF.



        
5条回答
  •  攒了一身酷
    2021-02-01 15:58

    From the XML specification:

    "XML processors SHOULD match character encoding names in a case-insensitive way"

    This indicates that you can use upper case or lower case or even mixed case if you wish. However, the specification uses "UTF-8" in all its examples so for consistency I'd go with that.

提交回复
热议问题