This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

inputEncoding

Summary

Gets the character encoding that is used for the text that is loaded into the document object.

Property of dom/Documentdom/Document

Syntax

Note: This property is read-only.

var inputEncoding = document.inputEncoding;

Return Value

Returns an object of type StringString

The character encoding that is used for the text that is loaded into the document object, or null when it is unknown.

Related specifications

DOM Level 4
Candidate Recommendation
DOM Level 3 Core
Recommendation

Attributions