I have a font (GungSeo) that contains chinese characters but I can't get imagettftext to display them. All I want to do is insert random chinese characters into a dynamic image. I know the unicode range where I can find these characters, but they are not displayed. Regular latin characters work.

The php documentation for imagettftext says: "May include decimal numeric character references (of the form: &#8364 ; ) to access characters in a font beyond position 127."

this is what I have:

imagettftext( $im, $fsize, 0, $x, $y, $color, $font, '&#32097 ;' );

Anyone know how to do this? I'm kinda clueless about character sets and encodings.

(I deliberately put a space before the semicolon in the above quote and code block so the browser wouldn't display the actual character.)

    Write a Reply...