characterSet

The Document.characterSet read-only property returns the character encoding of the document that it's currently rendered with.

MDN Reference