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.

Set cache flag (Previous) Set Content-Disposition header (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.