Hi guys, I'm trying to write a php+gd+imagettftext script which would support as many languages as possible. Everything seems to be working fine with European languages (German, Lithuanian..), but when I try to use Chinese characters, squares appears instead of Chinese characters (see the attached image). Do you know how to successfully output Chinese characters by gd? Thanks - Paul
I had this problem also. If you are using a DB you need to make sure the characters are set as UTF8- General. Also your PHP files may not be encoded as UTF8 so say in DW you can change this via Page Properties. Hope this helps!
I didn't have a Chinese font, trying to find one now. Yes, I store data to mysql using utf8 charset, but I add letters to image before I put them to database, so that's not the case. However, I will try to change encoding for PHP files. Thanks for your help.
The best font for unicode stuff I've run across is Microsoft's unicode Arial font that comes with Microsoft Office. If you have Office installed, see if you have the arialuni.ttf file installed. If not, search Google for the file, you can probably find it somewhere: [search=google]arialuni.ttf[/search]
You may of already got the Chinese font installed...go to Firefox, within the view function select UTF8 and see if that makes a difference.