The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
xmlEncoding property
Gets a value that represents the character encoding that is specified in the declaration of an XML document.
![]() ![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: String
A String that represents the character encoding, or a null value if the character encoding is not specified in the declaration or the specified value is not known.
Standards information
Examples
The following code example shows an XML declaration that specifies character encoding.
<?xml encoding="UTF-8"?>
See also
Show:

