[JpGraph] Problème d'affichage des accents
Bonjour,
Je désespère avec jpgraph pour afficher les caractères accentués correctement.
3 heures que je suis sur le problème et rien n'y fait !
J'ai essayer :
- header() en entete pour l'encodage UTF-8
- Mon entete html contient bien la meta UTF-8
- utf8_encode() ou utf8_decode() ne font rien
- htmlentities() avec ou sans ENT_QUOTES, 'UTF-8'
Ce qui m'agace, quand je fait echo($var) les é ou à sont bien affichés mais en passant par jpgraph j'ai des é etc...
Help ! :)
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| $graph = new PieGraph(900,650);
$theme_class = new SoftyTheme();
$graph->SetTheme($theme_class);
$graph->title->Set('Interventions par catégories');
$graph->title->SetFont(FF_ARIAL,FS_BOLD,20);
$oPie = new PiePlot($tab_nb_inters);
$oPie->value->SetFont(FF_ARIAL,FS_NORMAL,14);
$oPie->SetGuideLinesAdjust(1);
$oPie->SetLegends($tab_categories);
$oPie->SetCenter(0.4);
$oPie->SetValueType(PIE_VALUE_ABS);
$oPie->value->SetFormat('%d');
$graph->legend->SetFont(FF_ARIAL,FS_NORMAL,12);
$graph->Add($oPie);
$graph->Stroke('graphs/'.$imgs[0]); |
Merci !