Posted by Steve on 11/15/07 06:41
Thanks for all your advice. I am now in a position where I can get the
chinese characters into MySQL successfully and read them from it with
PHP and display appropriately in the browser (the problem seemed to be
caused by multi-byte characters occupying more "length" in the table.
I had, naively, thought that a VARCHAR of length 3 would be enough to
contain 3 chinese characters. Not so.).
I am now experiencing problems with displaying the characters using
imagettftext().
When I use the cyberbit.ttf font all characters (attempted thus far)
display perfectly.
http://mychinesename.co.uk/createimage.php?type=main&trans=3&Name=Suzanne
But using fonts located on the internet I get different results
http://mychinesename.co.uk/createimage.php?type=main&trans=3&Name=Suzanne&font=1
(font wcl-02 from http://www.wazu.jp/gallery/Fonts_ChineseTraditional.html)
http://mychinesename.co.uk/createimage.php?type=main&trans=3&Name=Suzanne&font=2
(font wts11 from http://www.wazu.jp/gallery/Fonts_ChineseSimplified.html)
With only some of the characters appearing.
Is this likely to be an encoding/character set problem or is it simply
because those characters are not in the character set.
Many thanks, in anticipation
Steve
Navigation:
[Reply to this message]
|