Back to index

d-push  2.0
Classes | Functions
utils.php File Reference

Go to the source code of this file.

Classes

class  Utils

Functions

 utf8_to_windows1252 ($string, $option="", $force_convert=false)
 windows1252_to_utf8 ($string, $option="", $force_convert=false)
 w2u ($string)
 u2w ($string)
 w2ui ($string)
 u2wi ($string)

Function Documentation

u2w ( string)

Definition at line 669 of file utils.php.

{ return utf8_to_windows1252($string); }

Here is the call graph for this function:

Here is the caller graph for this function:

u2wi ( string)

Definition at line 672 of file utils.php.

{ return utf8_to_windows1252($string, "//TRANSLIT"); }

Here is the call graph for this function:

Here is the caller graph for this function:

utf8_to_windows1252 ( string,
option = "",
force_convert = false 
)

Definition at line 646 of file utils.php.

                                                                            {
    //if the store supports unicode return the string without converting it
    if (!$force_convert && defined('STORE_SUPPORTS_UNICODE') && STORE_SUPPORTS_UNICODE == true) return $string;

    if (function_exists("iconv")){
        return @iconv("UTF-8", "Windows-1252" . $option, $string);
    }else{
        return utf8_decode($string); // no euro support here
    }
}

Here is the caller graph for this function:

w2u ( string)

Definition at line 668 of file utils.php.

{ return windows1252_to_utf8($string); }

Here is the call graph for this function:

Here is the caller graph for this function:

w2ui ( string)

Definition at line 671 of file utils.php.

{ return windows1252_to_utf8($string, "//TRANSLIT"); }

Here is the call graph for this function:

Here is the caller graph for this function:

windows1252_to_utf8 ( string,
option = "",
force_convert = false 
)

Definition at line 657 of file utils.php.

                                                                            {
    //if the store supports unicode return the string without converting it
    if (!$force_convert && defined('STORE_SUPPORTS_UNICODE') && STORE_SUPPORTS_UNICODE == true) return $string;

    if (function_exists("iconv")){
        return @iconv("Windows-1252", "UTF-8" . $option, $string);
    }else{
        return utf8_encode($string); // no euro support here
    }
}

Here is the caller graph for this function: