This page is Ready to Use

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

characterSet

Summary

Gets the preferred MIME name of the document’s character encoding.

Property of dom/Documentdom/Document

Syntax

Note: This property is read-only.

var result = element.characterSet;

Examples

//displays the document's character encoding string
function showCharSet() {
    alert(document.characterSet);
}

Syntax

Standards information

Attributions