note 33263 added to function.imagettftext
| From: | scatbb at pisem dot net | Date: | Fri, 20 Jun 2003 12:54:26 +0000 |
| Subject: | note 33263 added to function.imagettftext | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-50738@lists.php.net to get a copy of this message | ||
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;
}
----
Manual Page -- http://www.php.net/manual/en/function.imagettftext.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33263
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33263&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33263&report=yes