Character set conversion for CSS.
More...
|
static | convert ( $text, $encodings=[]) |
| Convert CSS text to UTF-8.
|
|
|
static | doConvert ( $encoding, $text) |
| Actually perform the conversion.
|
|
◆ convert()
static Wikimedia\CSS\Parser\Encoder::convert |
( |
| $text, |
|
|
| $encodings = [] ) |
|
static |
Convert CSS text to UTF-8.
- Parameters
-
string | $text | Text being detected |
string[] | $encodings | Encodings to use at various points in the algorithm:
- transport: Encoding from HTTP or the like
- environment: Encoding from HTML
<link> or the like
|
- Returns
- string
◆ doConvert()
static Wikimedia\CSS\Parser\Encoder::doConvert |
( |
| $encoding, |
|
|
| $text ) |
|
staticprotected |
Actually perform the conversion.
- Parameters
-
string | $encoding | |
string | $text | |
- Returns
- string
The documentation for this class was generated from the following file: