[Linux-bruxelles] problème d'accent, encore et toujours

Gaëtan Frenoy gaetan at frenoy.net
Ven 17 Aou 10:41:59 CEST 2007


Bonjour Alain,

Le Fri, 17 Aug 2007 10:31:28 +0200, AlainBB a écrit:
> http://www.barbason.be/stage.php
> (...utf-8/iso/accents/tout ça/...)
>
> Vous comprenez qqchose ?

 Regarde le résultat de :
   wget -S http://www.barbason.be/stage.php

 Dans les en-têtes HTTP, tu verras :
   Content-Type: text/html; charset=UTF-8

 À ce stade, tu as plusieurs options :
 1) Modifier l'en-tête HTTP de ta page via la commande en PHP
    <?php header("Content-Type: text/html; charset=ISO-8859-1"); ?>

 2) Modifier l'encodage de ton ficher via la commande shell:
    mv stage.php stage-iso.php
    iconv -f ISO-8859-1 -t UTF-8 -O stage.php stage-iso.php

 Hope this helps.

-- 
Gaëtan




Plus d'informations sur la liste de diffusion Linux-bruxelles