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:

