HTML_CSS::setCharset

HTML_CSS::setCharset() – Set charset value

Synopsis

require_once 'HTML/CSS.php';

void|PEAR_Error HTML_CSS::setCharset ( string $type = 'iso-8859-1' )

Description

Define the charset for the file. Default to ISO-8859-1 because of CSS1 compatability issue for older browsers.

Parameter

string $type

(optional) Charset encoding; defaults to ISO-8859-1.

Throws

throws HTML_CSS_ERROR_INVALID_INPUT

Since

since version 0.2.0 (2003-07-31)

Note

This function can not be called statically.