framework/Mvc/Extensions/Ckfinder/lib/core/connector/php/php5/Utils/FileSystem.php
public static function convertToConnectorEncoding($fileName)
    {
        $_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
        $encoding = $_config->getFilesystemEncoding();
        if (is_null($encoding) || strcasecmp($encoding, "UTF-8") == 0 || strcasecmp($encoding, "UTF8") == 0) {
            return $fileName;
        }

        if (!function_exists("iconv")) {
            if (strcasecmp($encoding, "ISO-8859-1") == 0 || strcasecmp($encoding, "ISO8859-1") == 0 || strcasecmp($encoding, "Latin1") == 0) {
                return utf8_encode($fileName);
            } else {
                return $fileName;
            }
        }

        $converted = @iconv($encoding, "UTF-8", $fileName);

        if ($converted === false) {
            return $fileName;
        }

        return $converted;
    }
public static function convertToConnectorEncoding($fileName)
    {
        $_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
        $encoding = $_config->getFilesystemEncoding();
        if (is_null($encoding) || strcasecmp($encoding, "UTF-8") == 0 || strcasecmp($encoding, "UTF8") == 0) {
            return $fileName;
        }

        if (!function_exists("iconv")) {
            if (strcasecmp($encoding, "ISO-8859-1") == 0 || strcasecmp($encoding, "ISO8859-1") == 0 || strcasecmp($encoding, "Latin1") == 0) {
                return utf8_encode($fileName);
            } else {
                return $fileName;
            }
        }

        $converted = @iconv($encoding, "UTF-8", $fileName);

        if ($converted === false) {
            return $fileName;
        }

        return $converted;
    }
public static function convertToConnectorEncoding ( $ fileName ) { $ _config = & CKFinder_Connector_Core_Factory :: getInstance ( "Core_Config" ) ; $ encoding = $ _config -> getFilesystemEncoding ( ) ; if ( is_null ( $ encoding ) || strcasecmp ( $ encoding , "UTF-8" ) == 0 || strcasecmp ( $ encoding , "UTF8" ) == 0 ) { return $ fileName ; } if ( ! function_exists ( "iconv" ) ) { if ( strcasecmp ( $ encoding , "ISO-8859-1" ) == 0 || strcasecmp ( $ encoding , "ISO8859-1" ) == 0 || strcasecmp ( $ encoding , "Latin1" ) == 0 ) { return utf8_encode ( $ fileName ) ; } else { return $ fileName ; } } $ converted = @ iconv ( $ encoding , "UTF-8" , $ fileName ) ; if ( $ converted === false ) { return $ fileName ; } return $ converted ; }
Convert file name from system encoding into UTF-8

@static
@access public
@param string $fileName
@return string
Convert file name from system encoding into UTF - 8