Go to the source code of this file.
decode_utf8 |
( |
|
$string = '' , |
|
|
|
$encoding = 'iso-8859-1' , |
|
|
|
$safe_mode = false |
|
) |
| |
Convert a string from UTF-8 to any of various encodings
- Parameters
-
string | String to decode [ |
string | Encoding; Default: ISO-8859-1] [ |
bool | Safe Mode: if set to TRUE, the original string is retunred on errors] |
- Returns
- string The decoded string or false on failure
- Since
- 0.0.1
Definition at line 55 of file transcode_wrapper.php.
encode_utf8 |
( |
|
$string = '' , |
|
|
|
$encoding = 'iso-8859-1' , |
|
|
|
$safe_mode = false |
|
) |
| |
Convert a string from any of various encodings to UTF-8
- Parameters
-
string | String to encode [ |
string | Encoding; Default: ISO-8859-1] [ |
bool | Safe Mode: if set to TRUE, the original string is retunred on errors] |
- Returns
- string The encoded string or false on failure
- Since
- 0.0.1
Definition at line 19 of file transcode_wrapper.php.
map_iso8859_1_w1252 |
( |
|
$string = '' | ) |
|
Special treatment for our guys in Redmond Windows-1252 is basically ISO-8859-1 – with some exceptions, which get accounted for here
- Parameters
-
string | Your input in ISO-8859-1 |
string | The resulting Win1252 string |
- Since
- 3.0.8
Definition at line 117 of file transcode_wrapper.php.
map_w1252_iso8859_1 |
( |
|
$string = '' | ) |
|
Special treatment for our guys in Redmond Windows-1252 is basically ISO-8859-1 – with some exceptions, which get accounted for here
- Parameters
-
string | Your input in Win1252 |
string | The resulting ISO-8859-1 string |
- Since
- 3.0.8
Definition at line 90 of file transcode_wrapper.php.