Déjà vu
Déjà vu

Reputation: 28850

PHP: have GD able to print Japanese words

In a PHP module, We have a few graphics made by GD that need to have some Japanese words in it. These words are entered manually from a form by Japanese users, and that text should be displayed within the graphics.

PHP has the mbstring module and can display and handle Japanese words via echo with no problem.

However gd displays ??? instead.

Checking gd_info(), the following configuration is set

JIS-mapped Japanese Font Support: Disabled 

This could be the problem. But I didn't find how to Enable it.

Using PHP 5.3.3.

Upvotes: 2

Views: 675

Answers (1)

pharalia
pharalia

Reputation: 709

You neet to re-compile php with --enable-gd-jis-conv

http://www.webhostingtalk.com/showthread.php?t=694939

Upvotes: 2

Related Questions