HTML DOM inputEncoding property
Examples
It displays the current character encoding of the document:
document.inputEncoding;
Output:
UTF-8
try it"
Definition and Usage
inputEncoding property returns the encoding of the document (when parsing).
If you asked to create or null in memory.
Browser Support
In addition to the Opera browser, all major browsers support inputEncoding property.
NOTE: Internet explorer 8 and earlier versions of IE does not support this property.
grammar
document.inputEncoding
technical details
return value: | String and return the document encoding |
---|---|
DOM version | Core Level 3 Document Object |