Namespaces | Functions

include/inc.utf8checker.php File Reference

Go to the source code of this file.

Namespaces

namespace  ilias
 

Chat base script.


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 ilObjSCORMLearningModule::readObject(), and ilObjSCORM2004LearningModule::readObject().

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

Here is the caller graph for this function: