note 56300 deleted from function.convert-cyr-string by mazzanet
| From: | mazzanet@php.net | Date: | Tue, 30 Aug 2005 10:24:21 +0000 |
| Subject: | note 56300 deleted from function.convert-cyr-string by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-94380@lists.php.net to get a copy of this message | ||
Note Submitter: webmaster at chassidus dot ru
----
//êîäèðóåì â utf8 åñëè è êîãäà íóæíî
function smart_utf8_coder($str,$lng) {
$coding=smart_code_page($str,$lng);
switch ($coding) {
case 'unicode_rus':
return win3utf(decode_unicoded_russian($str));
break;
case 'unicode_heb':
return heb2utf(decode_unicoded_hebrew($str));
break;
case 'rus': //win1251
return win3utf($str);
break;
case 'heb': //win1255
return heb2utf($str);
break;
case 'utf8':
return $str;
break;
default:
break;
}
}