Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

utf-8 characters in imagestring() function

Tags:

php

gd

I have problem with UTF-8 characters in imagestring() function, i'm trying to write these chacters "აბგდევზ" on image. imagestring($img,5,15,22,"აბგდევზ",$cor);

any idea?

enter image description here

like image 876
Irakli Gabisonia Avatar asked Apr 09 '26 10:04

Irakli Gabisonia


1 Answers

The function imagestring() doesn't support UTF-8 characters. If you need support for those, you need to use imagettftext(), which supports UTF-8, but needs to be linked to a TrueType font.

Here is the documentation for the function: http://php.net/manual/en/function.imagettftext.php


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!