inputEncoding property (document, XMLDocument)
Returns the character encoding used for parsing the document.
Note: The inputEncoding property is supported in Internet Explorer from version 9.To get the character encoding of the document, use the document.charset and the document.characterSet properties. To get the character set that belongs to the current regional and language settings of the operating system, use the defaultCharset property.
You can find the related objects in the Supported by objects section below.
This property is read-only.
String that represents the character set. For more information, see the page for character sets.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the inputEncoding property:
Did you find this example helpful?
User Contributed Comments