Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Localisation] Non-affichage des accents dans Apache
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
charlax
n00b
n00b


Joined: 14 Apr 2003
Posts: 64
Location: Nantes

PostPosted: Sat Nov 13, 2004 12:38 am    Post subject: [Localisation] Non-affichage des accents dans Apache Reply with quote

Tout d'abord je dois dire que j'ai beaucoup cherché :

https://forums.gentoo.org/viewtopic.php?t=186009&highlight=localisation+apache
http://www.phpscripts-fr.net/forum1/lire.php?id=78927

Sortie de la commande locale

Code:

d3in root # locale
LANG=fr_FR@euro
LC_CTYPE="fr_FR@euro"
LC_NUMERIC="fr_FR@euro"
LC_TIME="fr_FR@euro"
LC_COLLATE="fr_FR@euro"
LC_MONETARY="fr_FR@euro"
LC_MESSAGES="fr_FR@euro"
LC_PAPER="fr_FR@euro"
LC_NAME="fr_FR@euro"
LC_ADDRESS="fr_FR@euro"
LC_TELEPHONE="fr_FR@euro"
LC_MEASUREMENT="fr_FR@euro"
LC_IDENTIFICATION="fr_FR@euro"
LC_ALL=fr_FR@euro


Fichier /etc/apache2/conf/commonapache2.conf

Code:

d3in root # cat /etc/apache2/conf/commonapache2.conf | grep AddDefaultCharset
    AddDefaultCharset ISO-8859-1


Fichiers php.ini
Je ne sais pas mais il en y a 4.

Code:

d3in root # updatedb
d3in root # locate php.ini
/etc/php/cgi-php4/php.ini
/etc/php/apache2-php4/php.ini
/etc/php/cli-php4/php.ini
/etc/apache2/conf/php.ini
d3in root # cat /etc/php/cgi-php4/php.ini | grep default_charset
default_charset = "iso-8859-1"
d3in root # cat /etc/php/apache2-php4/php.ini | grep default_charset
default_charset = "iso-8859-1"
d3in root # cat /etc/php/cli-php4/php.ini | grep default_charset
default_charset = "iso-8859-1"
d3in root # cat /etc/apache2/conf/php.ini | grep default_charset
default_charset = "iso-8859-1"



Ma page d'accueil (http://d3in.homelinux.org/ a bien :

Code:

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />


Et pourtant les accents affichent :
Code:

Test des accents : éà èêë


Je vous remercie d'avance du temps que vous voudrez bien consacrer à mon problème.
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8708
Location: ~Brussels - Belgique

PostPosted: Sat Nov 13, 2004 12:53 am    Post subject: Reply with quote

Salut,

Les caractères affichés semblent être en UTF-8. La source l'est aussi...
Donc si tu sauves tes caractères accentués en UTF-8, ton META doit aussi l'indiquer... ou alors sauver en ISO-Latin (1 ou 9)
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
charlax
n00b
n00b


Joined: 14 Apr 2003
Posts: 64
Location: Nantes

PostPosted: Sat Nov 13, 2004 1:15 pm    Post subject: Reply with quote

Merci beaucoup ! Les accents des textes sont affichés !

Pour ceux que ça intéresse, c'est effectivement dans les propriétés du projet (dans Quanta) que vous changer le charset, et ensuite il faut retapper vos accents.

Par contre, il reste un truc que je ne comprends pas :
les accents passés dans les formulaires se transforment en ????.

Par exemple, quand j'utilise le formulaire Google, tous les caractères accentués se transforment en ?.

Ca ne le faisait pas avant l'installation de FriWiki qui m'avait demandé de changer le charset de php.ini.

Pourtant, comme tu peux le voir, j'ai bien remis sur iso-8859-1.

Des idées ?
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