XML Encode Help.
i am develop a small tool with C# for converting the ASCII format xml file to UTF-8 format.
What's the different for the below two line? Which one is better to use.
<?xml version="1.0" encoding="us-ascii"?>
<?xml version="1.0" encoding="ascii"?>
Thanks in advance.
xmldecl = doc.CreateXmlDeclaration("1.0", "us-ascii", null);
Neither of them, don't you think?
If you want to use UTF-8 encoding you use:
ascii is a subset of UTF-8 and us-ascii is simply another name for ascii.
<?xml version="1.0" encoding="UTF-8"?>
Originally Posted by Mario F.
Thank you Mario. :-)