====== getCharset ====== {#JAPI Joomla.Framework Document JDocument::getCharset #} Returns the document charset encoding. ===== Syntax ===== string getCharset () ===== Examples ===== global $mainframe; $document = &JFactory::getDocument(); echo "Character Set: " . $document->getCharset(); Might produce: Character Set: utf-8