Table of Contents

getCharset

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Document Class JDocument Method getCharset Reference getCharset() Never Work in Progress

Returns the document charset encoding.

Syntax

string getCharset ()

Examples

Example

global $mainframe;

$document = &JFactory::getDocument();
echo "Character Set: " . $document->getCharset();

Might produce:

Example

Character Set: utf-8