wCMF
3.6
|
Static Public Member Functions | |
static | isUtf8 ($string) |
static | convertCp1252Utf8ToIso ($str) |
static | convertIsoToCp1252Utf8 ($str) |
static | utf8EncodeMix ($input, $encodeKeys=false) |
EncodingUtil provides helper functions for working with different encodings mainly UTF-8.
Definition at line 67 of file class.EncodingUtil.php.
|
static |
Returns true if the given string is valid UTF-8 and false otherwise.
string | The string to be tested code from: http://us2.php.net/mb_detect_encoding |
Definition at line 74 of file class.EncodingUtil.php.
Referenced by HierarchicalFormat\processValues(), and utf8EncodeMix().
|
static |
Decodes mixed CP1252 UTF-8 strings to ISO.
string | The string to be decode code from: http://www.php.net/manual/en/function.utf8-decode.php#47146 |
Definition at line 86 of file class.EncodingUtil.php.
References $CP1252Map.
Referenced by HierarchicalFormat\processValues().
|
static |
Encodes ISO strings to mixed CP1252 UTF-8.
string | The string to be encode code from: http://www.php.net/manual/en/function.utf8-decode.php#47146 |
Definition at line 96 of file class.EncodingUtil.php.
References $CP1252Map.
|
static |
Encodes an ISO-8859-1 mixed variable to UTF-8 (PHP 4, PHP 5 compat)
input | An array, associative or simple |
encodeKeys | optional |
Definition at line 108 of file class.EncodingUtil.php.
References $CP1252Map, and isUtf8().
Referenced by gPrintJSONResult().