Passage de caractères dans graphe
Bonjour a tous ,
J’ai un problème d’affichage de variables dans un graphique , les titres et légendes qui ont des accents sont emplacés par des carrés
Serveur xamp
Php 5.3.1
mysql 5.1.41
Le début du ficher de récupérations des infos
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
<?php
$acces_administrateur = 1;
$acces_qd = 0;
$acces_assistante = 1;
$acces_visiteur = 0;
include_once("./verification_session.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<link href="orl_specifique_tab_tdb.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="impression_tdb.css" media="print" />
<title>Imprimer TDB - ORSEC</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="fr" />
</head>
<body>
.
Le fichier de traitement graphique
Il y a un if car pour certaines tables certaines sont en % et dautres en valeur
<?php
include_once ('./jpgraph/src/jpgraph.php');
include_once ('./jpgraph/src/jpgraph_pie.php');
include_once ('./jpgraph/src/jpgraph_pie3d.php');
$val_donnees = $_GET['donnees'];
$val_legende = $_GET['legende'];
$val_titre = $_GET['titre'];
$val_type = $_GET['typeVal'];
if ($val_type == "percent")
{
$donnees = explode(";", $val_donnees);
$legende = explode(";", $val_legende);
$graph = new PieGraph(630, 275);
$graph->title->Set($val_titre);
$graph->title->SetFont(FF_ARIAL,FS_BOLD,15);
$camenber = new PiePlot3D($donnees);
$camenber->SetCenter(180);
$camenber->SetSize(0.4);
$camenber->SetAngle(45);
$camenber->ExplodeAll(8);
$camenber->SetLegends($legende);
$graph->Add($camenber);
$graph->img->SetImgFormat("png");
$graph->Stroke();
}
else
{
$donnees = explode(";", $val_donnees);
$legende = explode(";", $val_legende);
$graph = new PieGraph(630, 275);
$graph->title->Set($val_titre);
$graph->title->SetFont(FF_ARIAL,FS_BOLD,15);
$camenber = new PiePlot3D($donnees);
$camenber->SetCenter(180);
$camenber->SetSize(0.4);
$camenber->SetAngle(45);
$camenber->ExplodeAll(8);
$camenber->SetValueType(PIE_VALUE_ABS);
$camenber->value->SetFormat('%d');
$camenber->SetLegends($legende);
$graph->Add($camenber);
$graph->img->SetImgFormat("png");
$graph->Stroke();
}
?>
|
Je suis preneur des vos infos averties .
A+