jpgraph:problem with displaying japanese font

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
callie
Forum Newbie
Posts: 2
Joined: Tue Apr 10, 2007 2:36 am

jpgraph:problem with displaying japanese font

Post by callie »

Hello, I seem to be having problems in displaying Japanese fonts with jpgraph. Here are some of the things I remember doing (there may be more ^^;) :
1. Used the specified TTF fonts in the config file
2. Used the equivalent TTC fonts and changed the config file accordingly
3. Changed the encoding of the file when it saves
4. Forced encoding using mb_change_encoding function (going between EUC-JP, JIS, SJIS, and the UTF-8 encodings)
5. Edited php.ini

My computer system uses the Japanese version of Win2K and I've used at least 3 different editors for coding (and repeating the steps above per editor)... But everytime I run the codes, it displays either a question mark, a blank, or garbage values...

Any help would be greatly appreciated... Thank you! :D
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

when searching the jpgraph forums for utf-8, the post under yours (identical to the above post) seems to have the solution already:

http://jpgraph.intellit.nl/index.php/topic,2237.0.html

Search is your friend!
callie
Forum Newbie
Posts: 2
Joined: Tue Apr 10, 2007 2:36 am

Post by callie »

that setting is false by default in the config file for jpgraph... i tried making it true, reverting it back to false... nothing changes :(
Post Reply