API16

API16:JDocument/setCharset

From Joomla! Documentation

Description

Sets the document charset


<! removed transcluded page call, red link never existed >

Syntax

setCharset($type= 'utf-8')
Parameter Name Default Value Description
$type 'utf-8' $type Charset encoding string public

Returns

void

Defined in

libraries/joomla/document/document.php

Importing

jimport( 'joomla.document.document' );

Source Body

function setCharset($type = 'utf-8') {
        $this->_charset = $type;
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples