API15

API15:JDocument/setCharset

From Joomla! Documentation

Revision as of 22:17, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Sets the document charset <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Sets the document charset

[Edit Descripton]

Template:Description:JDocument/setCharset

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;
}

[Edit See Also] Template:SeeAlso:JDocument/setCharset

Examples

<CodeExamplesForm />