function ISOtoUtf8($string)
{
    global $_CB_framework;
    $iso = $_CB_framework->outputCharset();
    if ($iso == "UTF-8") {
        return $string;
    } else {
        return CBTxt::charsetConv($string, $iso, 'UTF-8');
    }
}
Пример #2
0
	/**
	 * Converts UTF-8 string to CMS charset
	 *
	 * @param  string  $string
	 * @return string
	 */
	static function utf8ToISO( $string ) {
		global $_CB_TxtIntStore;

		if ( $_CB_TxtIntStore->_iso == 'UTF-8' ) {
			return $string;
		} else {
			return CBTxt::charsetConv( $string, 'UTF-8', $_CB_TxtIntStore->_iso );
		}
	}