javascript document characterSet

characterSet NN 6 IE n/a DOM n/a

Read-only

Indicates the character encoding of the document's content.

 
Example
 
if (document.characterSet == "ISO-8859-1") {
    // process for standard Latin character set
}
 
Value

Case-insensitive alias from the character set registry (ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets).

 
Default

Determined by browser.


537,Nickname,Homepage or email,Comments here,Add comment