XML UTF-8 Encoding – XML File Encoding Format ‘utf-8’ vs ‘UTF-8’

encodingutf-8xml

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

<?xml version="1.0" encoding="utf-8"?>


<?xml version="1.0" encoding="UTF-8"?>

I tried to create a new xml file with vs2005. utf-8 form file generated by default.

which one is a more standard definition? thanks.

Best Answer

The IANA character set registry says:

no distinction is made between use of upper and lower case letters.

But that page, the XML specification, and unicode.org are consistent about capitalizing UTF-8.

Related Question