当前位置: 首页 > 工具软件 > JpGraph > 使用案例 >

jpgraph 2.2变更

章安易
2023-12-01
jpgraph 2.2变更

原来在jpgraph.php中的字体配置代码全部转移到了新增的jpgraph_ttf.inc.php文件中去了。
中文乱码问题
原来的代码: jpgraph_ttf.inc.php 99 行开始
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);
                return $aTxt;
        }

更改后的代码
        elseif( $aFF === FF_SIMSUN ) {
            // Do Chinese conversion
            return $aTxt;
        }

把不需的代码删除或者注释掉
 
 类似资料: