framework/Mvc/Extensions/Ckfinder/lib/core/connector/php/php5/Utils/XmlNode.php
public function asUTF8($string)
    {
        if (CKFinder_Connector_Utils_Misc::isValidUTF8($string)) {
            return $string;
        }

        $ret = "";
        for ($i = 0; $i < strlen($string); $i++) {
            $ret .= CKFinder_Connector_Utils_Misc::isValidUTF8($string[$i]) ? $string[$i] : "?";
        }

        return $ret;
    }
public function asUTF8($string)
    {
        if (CKFinder_Connector_Utils_Misc::isValidUTF8($string)) {
            return $string;
        }

        $ret = "";
        for ($i = 0; $i < strlen($string); $i++) {
            $ret .= CKFinder_Connector_Utils_Misc::isValidUTF8($string[$i]) ? $string[$i] : "?";
        }

        return $ret;
    }
public function asUTF8 ( $ string ) { if ( CKFinder_Connector_Utils_Misc :: isValidUTF8 ( $ string ) ) { return $ string ; } $ ret = "" ; for ( $ i = 0 ; $ i < strlen ( $ string ) ; $ i ++ ) { $ ret .= CKFinder_Connector_Utils_Misc :: isValidUTF8 ( $ string [ $ i ] ) ? $ string [ $ i ] : "?" ; } return $ ret ; }
Checks whether the string is valid UTF8
@param string $string
Checks whether the string is valid UTF8