首页 新闻 会员 周边 捐助

JpGraph 中文乱码问题

0
悬赏园豆:20 [待解决问题]

改了$graph->title->SetFont(FF_SIMSUN,FS_BOLD);后显示错误如下,搜索过网上的错误,但是都解决不了这个问题,麻烦高手帮忙看看:

Warning: imagettftext() [function.imagettftext]: any2eucjp(): something happen inD:\inwebsite\jp3\jpgraph\gd_image.inc.php on line 940

JpGraph Error: HTTP headers have already been sent.
Caused by output from file gd_image.inc.php at line 940.
Explanation:
HTTP headers have already been sent back to the browser indicating the data as text before the library got a chance to send it's image HTTP header to this browser. This makes it impossible for the library to send back image data to the browser (since that would be interpretated as text by the browser and show up as junk text).

Most likely you have some text in your script before the call to Graph::Stroke(). If this texts gets sent back to the browser the browser will assume that all data is plain text. Look for any text, even spaces and newlines, that might have been sent back to the browser.

For example it is a common mistake to leave a blank line before the opening "<?php".

windblog.info的主页 windblog.info | 初学一级 | 园豆:50
提问于:2012-03-09 15:34
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册