FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Common function to handle strings. More...
Go to the source code of this file.
Functions | |
if(! defined('ENT_SUBSTITUTE')) | convertToUTF8 ($content, $toHTML=true) |
checkUTF8 ($content) | |
tryConvertToUTF8 ($content) | |
Common function to handle strings.
Definition in file common-string.php.
checkUTF8 | ( | $content | ) |
Check if the given string is already UTF-8 encoded
string | $content | String to check |
Definition at line 50 of file common-string.php.
if (! defined( 'ENT_SUBSTITUTE')) convertToUTF8 | ( | $content, | |
$toHTML = true |
|||
) |
Convert string to UTF-8
string | $content | String to be converted |
bool | $toHTML | True to return HTML compatible strings |
Definition at line 25 of file common-string.php.
tryConvertToUTF8 | ( | $content | ) |
Try to convert a string to UTF-8 encoded string
string | $content | String to be converted |
Definition at line 60 of file common-string.php.