php怎樣支持創建漢字的圖片。 把php\dlls目录下的内容复制到系统目录下 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 to: xuzuning(唠叨) ( ) 信誉:477 那個問題解決了, 但是還是不出來, 圖象顯示亂嗎。我用的是繁體 http://xinghe.sowee.com/img.php<?phpheader ("Content-type: image/png; charset=big5");$im = @imagecreate (100, 300) or die ("Cannot Initialize new GD image stream");$background_color = imagecolorallocate ($im, 255, 255, 255);$text_color = imagecolorallocate ($im, 233, 14, 91);print("³o¸Ì¿é¥XÁcÅéº~¦r");imagestring ($im, 1, 5, 5, "³o¸Ì¿é¥XÁcÅéº~¦r", $text_color);print("This print english");imagestring ($im, 1, 5, 5, "This print english", $text_color);imagepng ($im);?> <?phpheader ("Content-type: image/png; charset=big5");$im = @imagecreate (100, 300) or die ("Cannot Initialize new GD image stream");$background_color = imagecolorallocate ($im, 255, 255, 255);$text_color = imagecolorallocate ($im, 233, 14, 91);print("這裡輸出繁體漢字");imagestring ($im, 1, 5, 5, "這裡輸出繁體漢字", $text_color);print("This print english");imagestring ($im, 1, 5, 5, "This print english", $text_color);imagepng ($im);?> http://linuxsoft.myrice.com/linuxclub/linuxbc/gd.htm http://expert.csdn.net/Expert/topic/2063/2063514.xml?temp=.8493006不使用iconv()http://expert.csdn.net/Expert/FAQ/FAQ_Index.asp?id=97062使用iconv()Header("Content-type: image/PNG"); $im = imagecreate(300,50); $bkg = ImageColorAllocate($im, 128,64,225); $clr = ImageColorAllocate($im, 255,255,255); $fnt = "c:/windows/fonts/simfang.ttf";$str = iconv("GB2312","UTF-8","欢迎光临"); ImageTTFText($im, 20, 0, 30,40, $clr, $fnt, $str); ImagePNG($im); ImageDestroy($im); PHP高手们 帮我解决下好吗 insert into PHP的图片超级连接 怎么csdn论坛越发展越不好用,现在那个搜索是个什么东东,根本找不到想要找的东东,不上了?气死个人 如何有效地防止用户进入后台? php调用mysql存储过程问题 求一段代码,实现将页面中的script变量,传送到指定的 php页面中[全分相赠] PHP的正则表达式和JavaScript的正则表达式的规则一样吗? 大家给推荐一个把mysql数据导入oracle的工具 高手看过来,php下运行linux命令的问题 请教宇凡---一个函数的用法! 页面间的变量传递 (简单) 初学问题(三)
但是還是不出來, 圖象顯示亂嗎。
我用的是繁體
header ("Content-type: image/png; charset=big5");
$im = @imagecreate (100, 300)
or die ("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate ($im, 255, 255, 255);
$text_color = imagecolorallocate ($im, 233, 14, 91);
print("³o¸Ì¿é¥XÁcÅéº~¦r");
imagestring ($im, 1, 5, 5, "³o¸Ì¿é¥XÁcÅéº~¦r", $text_color);
print("This print english");
imagestring ($im, 1, 5, 5, "This print english", $text_color);
imagepng ($im);
?>
header ("Content-type: image/png; charset=big5");
$im = @imagecreate (100, 300)
or die ("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate ($im, 255, 255, 255);
$text_color = imagecolorallocate ($im, 233, 14, 91);
print("這裡輸出繁體漢字");
imagestring ($im, 1, 5, 5, "這裡輸出繁體漢字", $text_color);
print("This print english");
imagestring ($im, 1, 5, 5, "This print english", $text_color);
imagepng ($im);
?>
http://expert.csdn.net/Expert/FAQ/FAQ_Index.asp?id=97062使用iconv()
Header("Content-type: image/PNG");
$im = imagecreate(300,50);
$bkg = ImageColorAllocate($im, 128,64,225);
$clr = ImageColorAllocate($im, 255,255,255);
$fnt = "c:/windows/fonts/simfang.ttf";$str = iconv("GB2312","UTF-8","欢迎光临"); ImageTTFText($im, 20, 0, 30,40, $clr, $fnt, $str);
ImagePNG($im);
ImageDestroy($im);