Re: [xml] Adding encoding attribute

Steve Van Esch wrote:
Another beginner question Iâm sure.  I canât figure out how to add an
encoding attribute to the document.

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

I only have the following:

<?xml version="1.0"?>

That's because saying encoding="UTF-8" is redundant as it is the default given
by the XML spec anyway. Any XML parser would handle both of the above in
exactly the same way (otherwise it's not an XML parser).


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]