I'm trying to change the encoding of my imagefttext() result.
My idea is to print some text in "Arabic" language onto a specified image , but the result appear in strange
form.
I used this code, but it is work correctly just with English string :
mb_internal_encoding('UTF-8');
$im =imagecreatefromjpeg('x.jpg');
$textcolor=imagecolorallocate($im, 0, 0, 255);
imagefttext($im, 18, 0, 10, 20,$textcolor,"Fonts/tahoma.ttf","مسعود أوزبل");
imagejpeg($im,"mozil.jpg",100);
imagedestroy($im);
Can i have any solution for this problem ?
Thanks
– Aos Khlifa Sep 04 '11 at 19:11