刚刚入门的我,还要好远的路要走啊!坚持。。

mantis统计报表和图形报表出现乱码问题的解决方法

上一篇 / 下一篇  2010-01-15 13:02:36 / 个人分类:解决方案

1)修改/mantis/jpgraph-2.2/src/jpgraph_ttf.inc.php 注释掉99-106
//   elseif( $aFF === FF_SIMSUN ) {
//   // Do Chinese conversion
//   if( $this->g2312 == null ) {
//   include_once 'jpgraph_gb2312.php' ;
//   $this->g2312 = new GB2312toUTF8();
//   }
//   return $this->g2312->gb2utf8($aTxt);
//   }
2)修改/mantis/core/graph_api.php,添加'chinese_gbk' => FF_SIMSUN,
function graph_get_font() {
$t_font_map = array(
  'arial' => FF_ARIAL,
  'verdana' => FF_VERDANA,
  'courier' => FF_COURIER,
  'comic' => FF_COMIC,
  'times' => FF_TIMES,
  'georgia' => FF_GEORGIA,
  'trebuche' => FF_TREBUCHE,
  'vera' => FF_VERA,
  'veramono' => FF_VERAMONO,
'chinese_gbk' => FF_SIMSUN,
  'veraserif' => FF_VERASERIF );
3)修改
config_defaults_inc.php
$g_graph_font = 'chinese_gbk';


TAG:

 

评分:0

我来说两句

Open Toolbar