绘制了一个图形,如果是以ANSI格式编码可以在浏览器输出
但是以UTF-8格式编码就不能显示图形,这是什么原因?求指教!!!代码如下:<?php
$im = imagecreatetruecolor(50,25);$red = imagecolorallocate($im,255,0,0);
$str = 'ABCDEFGHIJKMNPQRSTUVWXTZabcdefghijkmnpqrstuvwxtz23456789';
$str = substr(str_shuffle($str),0,4);
imagestring($im,5,8,5,$str,$red);header('content-type:image/png');
imagepng($im);
imagedestroy($im);
?>
PHPGD2浏览器编码