Adding text to image – doesn't display special characters

Hi,
I have weird issue. I have mysql with utf8_general_ci and file with only PHP in which I wanna add text from database to image. Everything works but I can’t display special characters. PHP file is saved with UTF-8 without BOM. What I doing wrong?

I use simple imagettftext().

PS Sorry for my English, it’s not my native language.

Does this page help? : http://stackoverflow.com/questions/9458317/working-with-gd-imagettftext-and-utf-8-characters

Unfortunately no :frowning:

When I try echo mb_detect_encoding('ąśćż'); it says UTF-8 and everything is displayed properly.
But when i try to display data form database it says ASCII and special characters are not displayed. I don’t know what I doing wrong :confused:

Probably need to see your code, then. I haven’t used this so cannot offer anything more, but others may be able to help if we can see what’s going on, and perhaps a sample image and what it should say.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.