ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
inc.utf8checker.php File Reference

Go to the source code of this file.

Namespaces

namespace  ilias
 soap server

Functions

 isUTF8 ($AStr)
 seems_not_utf8 ($AStr)
 getUTF8String ($aStr)

Function Documentation

getUTF8String (   $aStr)

Definition at line 59 of file inc.utf8checker.php.

References isUTF8().

{
if (!isUTF8($aStr)) {
return utf8_encode($aStr);
}
return $aStr;
}

+ Here is the call graph for this function:

isUTF8 (   $AStr)

Definition at line 34 of file inc.utf8checker.php.

Referenced by getUTF8String().

{
if (@iconv('UTF-8', 'UTF-8',$AStr) == $AStr)
{
return true;
}
else
{
return false;
}
}

+ Here is the caller graph for this function:

seems_not_utf8 (   $AStr)

Definition at line 46 of file inc.utf8checker.php.

Referenced by ilObjSCORM2004LearningModule\readObject(), and ilObjSCORMLearningModule\readObject().

{
if (!@iconv('UTF-8', 'UTF-8',$AStr) == $AStr)
{
return true;
}
else
{
return false;
}
}

+ Here is the caller graph for this function: