note 33263 deleted from function.imagettftext by aidan
| From: | aidan@php.net | Date: | Mon, 20 Sep 2004 10:02:55 +0000 |
| Subject: | note 33263 deleted from function.imagettftext by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-77030@lists.php.net to get a copy of this message | ||
Note Submitter: scatbb at pisem dot net
----
This is an examlpe to covert RUssian string to unicode
(maked from iso example above):
function ru2uni ($isoline){
for ($i=0; $i < strlen($isoline); $i++){
$thischar=substr($isoline,$i,1);
$charcode=ord($thischar);
if ($charcode==168){
$uniline.="&#".(26*32+3+12+10+($charcode)).";";
}elseif ($charcode==184){
$uniline.="&#".(26*32+3+12+10+60+4+($charcode)).";";
}elseif(($charcode>=192) and ($charcode<=255)){
$uniline.="&#".(26*32+3+12+1+($charcode)).";";
}else{
$uniline.=$thischar;
}
}
return $uniline;
}