?????????
??????????Mantis???????????8??С????????????
??????config_ini.php?м????
????putenv("TZ=Asia/Shanghai");
????????????????????????php.ini??date.timezone = PRC
??????????
??????mantis????????????????upload???????????????????????config_defaults_inc.php
????gfileuploadmethod=DISK;//?????DATABASE??????????????У?????????????g_absolute_path_default_upload_folder = 'C:Program Filesmantisbt-1.1.8upload';//??upload??λ???????
?????????Unix/Linux?????????????uploads??????????"/"??????????????????????777.
????gshowattachmentindicator=ON;//???????????????????????buglist???????????g_max_file_size                = 5000000;          //????????С????????????????з?????php.ini?????????.
????gdisallowedfiles=′php??php3??phtml??html??class??java??exe′;//filetypeNOTallowed??????????????????????????????????????????????????????????????????????.?????????????????????????????.??????????????????.???????configinc.php????.g_signup_use_captcha   = OFF;//?????ON
????JPGraph
???????????£?Mantis????α???????????????JPGraph??顣
????JPGraph 1.x ?汾?????php4??2.x ?????php5???
????mantisbt-1.1.8????????graphs????У????????????????????????????jpgraph-2.3.4?????п????????????????
????No1  ???config_inc.php
?????????
????g_use_jpgraph            = OFF;  #g_jpgraph_path            = '.' . DIRECTORY_SEPARATOR . 'jpgraph' . DIRECTORY_SEPARATOR;   # dont forget the ending slash!
??????????
????gusejpgraph=ON;g_jpgraph_path            = '.' . DIRECTORY_SEPARATOR . 'graphs' . DIRECTORY_SEPARATOR;   # dont forget the ending slash!
????'jpgraph'????> 'graphs' ??????????????????
????No2  ???php.ini
????????“;extension=php_gd2.dll” ?????????????????????JPGraph???????????к???????????????????
????No3  JPGraph?????????
??????$mantiscoregraph_api.php???????graph_get_font()?????????????У?'chinese_gbk' => FF_SIMSUN
??????config_inc.php?????????$g_graph_font           = 'chinese_gbk';
??????$JPGraphsrcjpg-config.inc.php??????DEFINE('CHINESE_TTF_FONT'??'bkai00mp.ttf');
??????? DEFINE('CHINESE_TTF_FONT'??'simsun.ttc');
????????????????????????
???????graphsjpgraph_ttf.inc.php???????
????elseif( aFF === FF_SIMSUN ) {       // Do Chinese conversion         if(this->g2312 == null ) {
????include_once 'jpgraph_gb2312.php' ;
????this->g2312 = new GB2312toUTF8();       }       returnthis->g2312->gb2utf8($aTxt);
????}
?????????
????elseif( aFF === FF_SIMSUN ) {       // Do Chinese conversion    /*       if(this->g2312 == null ) {
????include_once 'jpgraph_gb2312.php' ;
????this->g2312 = new GB2312toUTF8();       }       returnthis->g2312->gb2utf8(aTxt);?/returnaTxt;
????}
?????????????????Щ???????mantis???в????????????????chinese_simplified?????????????chinese_simplified_utf8???????????в???????????????????С??????????
?????????????????(δ????)
????.(??????http://micki.blogbus.com/logs/38993106.html)???????в????????????°溯???仯.
????????MySql??Mantis?????????б???????UTF8???????????Mantis???????????????????????????????????CSV??Excel??????????????????????????????????
????No1 ???CVS????????
???????Mantis??????csv_export.php??????????
????????????
????function expChangeCode(str) { return  mb_convert_encoding(str??"CP936"??"UTF-8");
????}
???????????
??????echo theader???echoexpChangeCode(t_header);
??????echo  csv_escape_string(tvalue);???echoexpChangeCode(csvescapestring(t_value));
??????echo tfunction(t_row->tcolumn);???echoexpChangeCode(t_function( trow?>t_column ));
????No2  ???Excel????????
???????Mantis??????core/excel_api.php??????????
??????tret.=utf8encode(t_value );???tret.=t_value;
????????utf8_encode????????????????????
??????t_value = str_replace( ">"?? ">"??t_value );???t_ret = str_replace( ">"?? ">"??t_value );
???????tret.=utf8encode(t_value );???????????????
????Excel?????????????????????????????.?????????????????????.
???????????Apache????????????Ч??