EncodingUtil Class Reference
Detailed Description
EncodingUtil provides helper functions for working with different encodings mainly UTF-8.
Definition at line 19 of file EncodingUtil.php.
Static Public Member Functions | |
static | isUtf8 ($string) |
static | convertCp1252Utf8ToIso ($string) |
static | convertIsoToCp1252Utf8 ($string) |
static | utf8EncodeMix ($input, $encodeKeys=false) |
Member Function Documentation
|
static |
Returns true if the given string is valid UTF-8 and false otherwise.
- Parameters
-
$string The string to be tested code from: http://us2.php.net/mb_detect_encoding
Definition at line 64 of file EncodingUtil.php.
|
static |
Decodes mixed CP1252 UTF-8 strings to ISO.
- Parameters
-
$string The string to be decode code from: http://www.php.net/manual/en/function.utf8-decode.php#47146
Definition at line 78 of file EncodingUtil.php.
|
static |
Encodes ISO strings to mixed CP1252 UTF-8.
- Parameters
-
$string The string to be encode code from: http://www.php.net/manual/en/function.utf8-decode.php#47146
Definition at line 87 of file EncodingUtil.php.
|
static |
Encodes an ISO-8859-1 mixed variable to UTF-8 (PHP 4, PHP 5 compat)
- Parameters
-
$input An array, associative or simple $encodeKeys optional
- Returns
- utf-8 encoded input code from: http://de3.php.net/utf8_encode
Definition at line 98 of file EncodingUtil.php.