HTML DOM Document inputEncoding Attribute

Definition and Usage

Not recommended inputEncoding property. Do not use it.

inputEncoding The attribute may not work in future browsers.

Alternatives:

characterSet property

See also:

HTML Character Set Reference Manual

Example

Display the character encoding of this document:

let encoding = document.inputEncoding;

Try it yourself

Syntax

document.inputEncoding

Return Value

Type Description
String Character Encoding of the Document.