Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HTML] Problème d'accents sur page html (Résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
lefoid
Apprentice
Apprentice


Joined: 05 Nov 2005
Posts: 232

PostPosted: Fri Oct 10, 2008 9:00 pm    Post subject: [HTML] Problème d'accents sur page html (Résolu) Reply with quote

Bonjour à tous
J'ai besoin de vos lumières. J'ai créé un petit site (non en ligne actuellement).
Il y a une page dont le code est le même que les autres pages, mais qui ne
m'affiche pas le "é" (e accent aigu) présent.
Sur toutes les autres pages, l'affichage est normal ...
Voici l'affichage incorrect et le correct.
Je précise que ça se reproduit sur IE, Firefox, Epiphany ...
Voici le code de la page à l'affichage incorrect suivi de celui à l'affichage correct.

Code:
<!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>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Language" content="fr" />
  <title>Uniq Travel</title>
  <style type="text/css" media="screen">@import url(css/normal.css);</style>
</head>
<body>
<center>
<img
 src="Images/Titre_petit.png"
 alt="" style="width: 200px; height: 50px;">
</center>
<hr style="width: 100%; height: 2px;">
<ul class="onglets">
  <li class="active"><a href="Accueil.html"><span>Accueil</span></a></li>
  <li><a href="Menu_1.html"><span>Menu 1</span></a></li>
  <li><a href="Menu_2.html"><span>Menu 2</span></a></li>
  <li><a href="Menu_3.html"><span>Menu 3</span></a></li>
  <li><a href="Menu_4.html"><span>Menu 4</span></a></li>
  <li><a href="Promotions.html"><span>Promotions</span></a></li>
  <li><a href="Recherche.html"><span>Recherche</span></a></li>
  <li><a href="Contacts.html"><span>Contacts</span></a></li>
  <li><a href="Faq.html"><span>Questions fréquentes</span></a></li>
</ul>
<hr style="width: 100%; height: 2px;">
<span style="text-decoration: underline;"><br>
</span>
<br>
</body>
</html>


Code:
<!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>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Language" content="fr" />
  <title>Uniq Travel</title>
  <style type="text/css" media="screen">@import url(css/normal.css);</style>
</head>
<body>
<center>
<img
 src="Images/Titre_petit.png"
 alt="" style="width: 200px; height: 50px;">
</center>
<hr style="width: 100%; height: 2px;">
<ul class="onglets">
  <li><a href="Accueil.html"><span>Accueil</span></a></li>
  <li class="active"><a href="Menu_1.html"><span>Menu 1</span></a></li>
  <li><a href="Menu_2.html"><span>Menu 2</span></a></li>
  <li><a href="Menu_3.html"><span>Menu 3</span></a></li>
  <li><a href="Menu_4.html"><span>Menu 4</span></a></li>
  <li><a href="Promotions.html"><span>Promotions</span></a></li>
  <li><a href="Recherche.html"><span>Recherche</span></a></li>
  <li><a href="Contacts.html"><span>Contacts</span></a></li>
  <li><a href="Faq.html"><span>Questions fréquentes</span></a></li>
</ul>
<hr style="width: 100%; height: 2px;">
<span style="text-decoration: underline;"><br>
</span>
<br>
</body>
</html>

Et au cas où, le fichier CSS :
Code:
.onglets {
list-style-type: none;
border-bottom: none;
padding-bottom: 29px;
margin: 0;
}

li {
float: left;
margin: 2px 2px 0 2px;
border: 1px solid black;
background-color: lightblue;
}

.active {
border-bottom: 1px solid white;
background-color: white;
padding: 4px;
}

a {
display: block;
color: darkblue;
text-decoration: none;
padding: 4px;
}

a:hover {
background: white;
color: lightblue;
}

J'avoue que je sèche sur le problème. Si quelqu'un voit le schtroumph, je
suis preneur d'une explication.
Par avance, merci ...

PS : j'imagine qu'il existe des forums plus spécialisés, mais je me dis que
ces gens là travaillent sous Gentoo ... hum :lol:
_________________
Visi pas nette, pilote à la buvette !


Last edited by lefoid on Sat Oct 11, 2008 6:28 am; edited 1 time in total
Back to top
View user's profile Send private message
Jamesbch
Apprentice
Apprentice


Joined: 30 Sep 2007
Posts: 185

PostPosted: Fri Oct 10, 2008 9:50 pm    Post subject: Reply with quote

Salut,

tu pourrais coder tes accents selon la norme HTML, é = &eacute; (http://www.toutimages.com/codes_caracteres.htm)
Sinon de manière générale as-tu vérifié que ton fichier sur le disque est bien en UTF8 directement ? Tu peux suivant ton navigateur essayer de changer l'affichage de l'encodage pour voir.

Bonne chance.
_________________
Desktop: Gigabyte EX38-DS4, Intel Q9450 2.6 GHz, 4 GiB DDR2, Nnvidia GTX 285.
Home-Server: Gigabyte 945GCM-S2L, Intel E2180 2.2 GHz, 2 GiB DDR2, Intel 82945G.
Laptop: Asus 1215N, Atom D525 1.4 Ghz, 2 GiB, Intel + Ion2
Back to top
View user's profile Send private message
lefoid
Apprentice
Apprentice


Joined: 05 Nov 2005
Posts: 232

PostPosted: Sat Oct 11, 2008 6:27 am    Post subject: Reply with quote

Salut Jamesbch
Effectivement, ça fonctionne (honte à moi, j'avais déjà essayé, mais oublié
le point-virgule :oops: ).
Néanmoins, je ne m'explique pas pourquoi ça le fait sur cette page et pas
sur les autres, alors qu'elles sont des copier-coller de la première :?
Concernant le fichier en UTF-8, toutes mes locales m'indiquent fr_FR.UTF-8.
Quant aux codages des navigateurs, ils sont aussi en UTF-8.
Je mets "résolu" mais suis fana pour une explication si elle existe.
A + ...
_________________
Visi pas nette, pilote à la buvette !
Back to top
View user's profile Send private message
geekounet
Bodhisattva
Bodhisattva


Joined: 11 Oct 2004
Posts: 3772
Location: Wellington, Aotearoa

PostPosted: Sat Oct 11, 2008 7:02 am    Post subject: Reply with quote

Ton fichier devait être enregistré en ISO8859-1 apparemment. :)
Back to top
View user's profile Send private message
lefoid
Apprentice
Apprentice


Joined: 05 Nov 2005
Posts: 232

PostPosted: Sat Oct 11, 2008 10:38 am    Post subject: Reply with quote

Oui, sans aucun doute ...
Je viens de remettre le "é" de manière standard, et d'enregistrer ma page à nouveau
(j'ai dû le faire 20 fois hier sans succès) et là, ça fonctionne sans problème :?
J'avoue être circonspect car j'ai enregistré la page une bonne vingtaine de fois avec
Bluefish hier. J'imagine que j'aurais dû en créer une nouvelle tout de suite.
Des "morceaux" d'ISO-8859-1 seraient donc restés à "l'insu de mon plein gré" :lol:
Merci en tout cas pour votre aide ...
A bientôt ! :wink:
_________________
Visi pas nette, pilote à la buvette !
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum