Re: HTML META tag

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



>From what I've seen of XML, the encoding appears to be a requirement.
The reason being that XML tags are self-defined and in order to parse a
document, the encoding MUST be known. Encoding is based upon 8-bit
character sets, 16-bit character sets or 32-bit character sets (and this also
helps identify the language the document is targeted for, although the
language is usually encoded in other tags).

Sometimes the encoding is specified in the <?xml?> tag at the top of the
document. In addition it can be specified by the <meta> tag, and IF the
document is still a valid <html> document, the "language" will be specified
in the body tag as well.
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-16"?>
<?xml version="1.0" encoding="ISO-10646-UCS-4"?>

http://www.w3schools.com/xml/xml_encoding.asp

Hope this helps.

--
Jim Carlock
Please post replies to newsgroup.

"Craig Buchanan" <someone@xxxxxxxxxxxxx> wrote:

"Jim Carlock" wrote:
> What does your code look like?
>
> --
> Jim Carlock
> Please post replies to newsgroup.
>
> "Craig Buchanan" <msnews.microsoft.com> wrote:
> I am transforming a XML document into a HTML document using the
> DomDocument's transformNode method. For some reason, this following line
> is added to the resulting document:
> <META http-equiv="Content-Type" content="text/html; charset=UTF-16">
>
> I haven't specified this in either my XML or my XSL document.
>
> Why is this happening? Is there a way to prevent this from happening? Is
> this some sort of default processingInstruction?
>
> Thanks,
>
> Craig Buchanan
>
>
>



.



Relevant Pages