JSREF

HTML DOM Document characterSet

Get the character encoding for a document: