PEAR logo

HTML_CSS : The Definitive Guide

Name

HTML_CSS::setCharset — Set charset value

Synopsis

    require_once 'HTML/CSS.php';
   
void|PEAR_Error HTML_CSS::setCharset( $type = 'iso-8859-1');  
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.

See

see HTML_CSS::getCharset

Throws

throws HTML_CSS_ERROR_INVALID_INPUT

Since

since version 0.2.0 (2003-07-31)

Note

This function can not be called statically.

HTML_CSS : The Definitive Guide v 1.5.0 : January 15, 2008