【PHP】初心者コーナー 2 Released
■ このスレッドは過去ログ倉庫に格納されています
0041nobodyさん
03/03/26 22:14ID:???$im = imagecreate (200, 50);
$blue = imagecolorallocate($im,0,0,255);
$black = imagecolorallocate($im,0,0,0);
$ff = ;
$result = imagettftext($im,25,0,20,30,$black,
"/usr/share/fonts/ja/TrueType/kochi-gothic.ttf"
,mb_convert_encoding("日本語",'UTF-8'));
Header ("Content-type: image/jpeg");
imagepng($im);
これで日本語が文字化けすんのは何がいけないのだろう。
makeオプションはこんな感じです。
--with-gd=/usr
--with-jpeg-dir=/usr
--with-freetype-dir=/usr/share/fonts/ja/TrueType
--with-ttf
--enable-exif
--enable-zendmultibyte
--enable-mbstring
--enable-mbregex
■ このスレッドは過去ログ倉庫に格納されています