J'ais un petit souci, j'ais créer une page en css avec une include dans laquelle apparait un texte tiré d'un fichier texte(une page admin permet de modifier le texte) par contre j'ais remarqué que le css et les accentuations (é,à etc....) ne font pas bon ménage. Y a t'il un moyen de les faire accepter sans utiliser les caractères spéciaux?
Je mets le code de la page pour faire plus simple:
Code : Tout sélectionner
<?
session_start();
include("membrepass/config.php");
include("membrepass/include/variable.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta http-equiv="Content-Type" content="text/html; CHARSET=iso-8859-1" />
<title> </title>
<style type="text/css">
#printhead {display:block;}
html, body {margin:0; padding:0; width:100%; height:100%; overflow:hidden;}
body {font-family:verdana, arial, sans-serif; font-size:76%; color:#fff;}
#head {position:absolute; margin:0; top:0; right:18px; display:block; width:100%; height:80px; background-image: url(images/header1.jpg); font-size:4em; z-index:5; color:#000; border-bottom:1px solid #000;}
#background{position:absolute; z-index:1; width:100%;}
#background1{position:absolute; z-index:1; width:467;}
#scroller {position:absolute; width:100%; height:100%; top:0; left:0; overflow:auto; z-index:2;}
#content {padding:5px 200px 20px 200px;}
p {line-height:1.8em; letter-spacing:0.1em; text-align:justify;}
#fixed {position:absolute; top:100px; left:10px; width:120px; z-index:5; color:#fff; background:#CE6AAA; border:1px solid #ffff00; padding:7px;}
#fixed1 {position:absolute; top:260px; left:10px; width:120px; height:280px; z-index:5; color:#fff; background:#CE6AAA; border:1px solid #ffff00; padding:7px;}
#fixed3 {position:absolute; top:110px; right:30px; width:120px; height:400px; z-index:10; color:#fff; background:#CE6AAA; border:1px solid #ffff00; padding:7px;}
#fixed4 {position:absolute; top:110px; right:30px; width:120px; height:380px; z-index:10; color:#fff; background:#CE6AAA; border:1px solid #ffff00; padding:7px;}
#fixed5 {position:absolute; top:2px; right:30px; width:470px; height:62px; z-index:10; color:#fff;padding:7px;}
A.menulink {
position: absolute; top:75px;
float:center;
display: block;
width: 100px;
height:20px;
text-align: center;
text-decoration: none;
font-family:arial;
font-size:12px;
color: #000000;
BORDER: 1;
border: solid 1px #000000;
background-color:#ffff44;
}
A.menulink:hover {
border: solid 1px #000000;
background-color:#cc3300;
}
</style>
<script>
/*
CSS Menu highlight- By Marc Boussard ([email protected])
Modified by DD for NS4 compatibility
Visit http://www.dynamicdrive.com for this script
*/
var ns4class=''
</script>
</STYLE>
</head>
<body><?
$lecture=fopen("interact/haut.txt","r");
while (!feof($lecture))
{
$ligne=fgets($lecture,4096);
echo stripslashes($ligne)."<br />";
}
fclose($lecture);
?>