NameSilo

Chinese characters and GD?

Spaceship Spaceship
Watch

NuPagady

Established Member
Impact
2
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
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
.US domains.US domains
0
•••
Thanks. Yes, I didn't have a Chinese font. I will try to find one.
 
0
•••
Just a quick update:

I fixed the problem by using Microsoft's unicode Arial font:
arialuni.ttf

Everything works fine now. Thanks for help!
 
0
•••

We're social

Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back