|
问题:
Mantis报表出现乱码。
下面是我相关的配置,我是个新手,希望有高手指点。非常感激。
我用的jpgraph版本是jpgraph-3.0.7.tar.bz2。
我phpmyadmin中创建数据库中的MySQL连接校对是utf8_general_ci在我的mantis下面的config_defaults_inc.php里面配置如下:
$g_default_language = 'chinese_simplified_gb2312';
$g_language_choices_arr = array(
'auto',
'arabic',
'bulgarian',
'catalan',
'chinese_simplified_gb2312', 'chinese_traditional',
'croatian',
'czech',
'danish',
'dutch',
'english',
'estonian',
'finnish',
'french',
'german',
'german_eintrag',
'greek',
'hebrew',
'hungarian',
'icelandic',
'italian',
'japanese',
'korean',
'latvian',
'lithuanian',
'norwegian',
'polish',
'portuguese_brazil',
'portuguese_standard',
'romanian',
'russian',
'serbian',
'slovak',
'slovene',
'spanish',
'swedish',
'turkish',
'ukrainian',
'urdu',
);
# Browser language mapping for 'auto' language selection
$g_language_auto_map = array(
'ar' => 'arabic',
'bg' => 'bulgarian',
'ca' => 'catalan',
'zh-cn, zh-sg, zh' => 'chinese_simplified_gb2312',
'zh-hk, zh-tw' => 'chinese_traditional',
'cs' => 'czech',
'da' => 'danish',
'nl-be, nl' => 'dutch',
'en-us, en-gb, en-au, en' => 'english',
'et' => 'estonian',
'fi' => 'finnish',
'fr-ca, fr-be, fr-ch, fr' => 'french',
'de-de, de-at, de-ch, de' => 'german',
'he' => 'hebrew',
'hu' => 'hungarian',
'hr' => 'croatian',
'is' => 'icelandic',
'it-ch, it' => 'italian',
'ja' => 'japanese',
'ko' => 'korean',
'lt' => 'lithuanian',
'lv' => 'latvian',
'no' => 'norwegian',
'pl' => 'polish',
'pt-br' => 'portugese_brazil',
'pt' => 'portugese_standard',
'ro-mo, ro' => 'romanian',
'ru-mo, ru-ru, ru-ua, ru' => 'russian',
'sr' => 'serbian',
'sk' => 'slovak',
'sl' => 'slovene',
'es-mx, es-co, es-ar, es-cl, es-pr, es' => 'spanish',
'sv-fi, sv' => 'swedish',
'tr' => 'turkish',
'uk' => 'ukrainian'
);
# Fallback for automatic language selection
$g_fallback_language = 'english';
$g_graph_font='chinese_gbk';
# how many graphs to put in each row in the advanced summary page
$g_graph_summary_graphs_per_row = 2;
$g_graph_font_folder='c:/WINDOWS/Fonts/'; $g_font_per_captcha='simsun.ttf';在我的mantis\jpgraph\src\jpg-config.inc.php下面的相关修改如下:
define('CHINESE_TTF_FONT','simsun.ttc'); |
|