API15

API15:JDocument/setCharset

From Joomla! Documentation

Revision as of 00:30, 25 March 2017 by JoomlaWikiBot (talk | contribs) (preparing for archive only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Sets the document charset

[<! removed edit link to red link >]

<! 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 edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples