[réglé] Problèmes d'accentuation

Support et assistance sur les templates Joomla! 1.0.x, design html et css.

Moderators: Aidan38, sarki

Forum rules
Règles du forum
Locked
User avatar
deneb.star
Joomla! Apprentice
Joomla! Apprentice
Posts: 48
Joined: Wed Apr 12, 2006 2:52 pm
Location: Paris
Contact:

[réglé] Problèmes d'accentuation

Post by deneb.star » Tue Aug 28, 2007 8:33 pm

Sur mes sites Joomla, les accents francais n'apparaissent pas dans les champs qui sont des parametres du template
exemple : sur le site http://www.chinchillas-village.info/
a "mot de passe oublie" l'accent sur le "e" de "oublie" n'apparait pas

Est ce que quelqu'un sait d'ou ca vient ?

Merci,
Deneb
Last edited by mejean on Tue Nov 20, 2007 2:57 pm, edited 1 time in total.
Pangeesoft free web hosting  http://www.pangeesoft.com/

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Problemes d'accentuation

Post by infograf768 » Wed Aug 29, 2007 11:30 pm

Votre serveur présente le fichier langue en utf-8 malgré l'encodage demandé en iso-8559-1.
Mais le fait qu'il n'y ait que ce fichier ainsi présenté est bizarre.

Procédons par ordre...

1. Encodage et collation de la base de données?
2. Encodage du fichier french.php (et voir charset dans le code)?
3. Avez-vous le même problème en utilisant le template solarflare par défaut?
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
deneb.star
Joomla! Apprentice
Joomla! Apprentice
Posts: 48
Joined: Wed Apr 12, 2006 2:52 pm
Location: Paris
Contact:

Re: Problemes d'accentuation

Post by deneb.star » Fri Aug 31, 2007 8:46 pm

Hello,

Je suis alle farfouiller dans le my.cnf,
j'ai rajoute les deux lignes en gras puis redemare mysqld

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
   
#Set the default character set.
default-character-set=latin1
default-collation=latin1_swedish_ci


[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

Ca n'a pas ameliore ...
Pangeesoft free web hosting  http://www.pangeesoft.com/

User avatar
deneb.star
Joomla! Apprentice
Joomla! Apprentice
Posts: 48
Joined: Wed Apr 12, 2006 2:52 pm
Location: Paris
Contact:

Re: Problemes d'accentuation

Post by deneb.star » Fri Aug 31, 2007 9:09 pm

dans french.php j'ai :


/** templates/*.php */
DEFINE('_ISO','charset=iso-8859-1');
DEFINE('_DATE_FORMAT','l, F d Y');  //Uses PHP's DATE Command Format - Depreciated
/**
* Modifier la ligne en accord avec le format de date que vous souhaitez voir apparaitre sur votre site
*
*e.g. DEFINE('_DATE_FORMAT_LC','%A, %d %B %Y %H:%M'); // Référez-vous à l'utilisation de la commande PHP strftime
*/
DEFINE('_DATE_FORMAT_LC','%d-%m-%Y'); // Référez-vous à l'utilisation de la commande PHP strftime
/** la ligne initiale dans le fichier source en anglais :  DEFINE('_DATE_FORMAT_LC2','%A, %d %B %Y %H:%M'); */
DEFINE('_DATE_FORMAT_LC2','%d-%m-%Y %H:%M');
DEFINE('_SEARCH_BOX','Rechercher...');
DEFINE('_NEWSFLASH_BOX','Annonce');
DEFINE('_MAINMENU_BOX','Menu Principal');

etc .....
Pangeesoft free web hosting  http://www.pangeesoft.com/

User avatar
deneb.star
Joomla! Apprentice
Joomla! Apprentice
Posts: 48
Joined: Wed Apr 12, 2006 2:52 pm
Location: Paris
Contact:

Re: Problemes d'accentuation

Post by deneb.star » Fri Aug 31, 2007 9:21 pm

J'ai le même problème en utilisant le template solarflare par défaut :

You do not have the required permissions to view the files attached to this post.
Pangeesoft free web hosting  http://www.pangeesoft.com/

User avatar
deneb.star
Joomla! Apprentice
Joomla! Apprentice
Posts: 48
Joined: Wed Apr 12, 2006 2:52 pm
Location: Paris
Contact:

Re: Problemes d'accentuation

Post by deneb.star » Fri Aug 31, 2007 10:34 pm

Ok ca venait du httpd.conf ou la directive par defaut force le UTF-8


#
# Specify a default charset for all content served; this enables
# interpretation of all content as UTF-8 by default.  To use the
# default browser choice (ISO-8859-1), or to allow the META tags
# in HTML content to override this choice, comment out this
# directive:
#
AddDefaultCharset UTF-8
#

Maintenant j'ai commente la ligne :

# directive:
#
# AddDefaultCharset UTF-8
#
ET CA MARCHE AVEC LES ACCENTS !!!
YES !
Pangeesoft free web hosting  http://www.pangeesoft.com/

gmalol
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Tue Nov 20, 2007 1:13 pm

Re: Problemes d'accentuation

Post by gmalol » Tue Nov 20, 2007 1:44 pm

Bonjour, je suis nouveau

J'ai également le problème avec une template installée. (achetée 10 euros sur un site allemand)

Dans le corps de joomla les e accens sont remplacé par des Carré (ainsi que à et autre). exemple:  �crit par Webmaster

Alors que cela n'apparait pas avec la template par defaut.

J'ai préferé réouvrir ce post plutôt qu'en créer un autre.

j'ai chercher à modifer certain fichier notament le templateDetails.xml ou on y trouve 

mais rien ne change (vous me direz "c'est normal")

quelqu'unaurait il une idée?

MERCI

version joomla 1.0.13
Last edited by gmalol on Tue Nov 20, 2007 1:51 pm, edited 1 time in total.
joomla 1.0.13 & 1.5.0

merci aux ames de bonne volonté participant à l'open source

gmalol
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Tue Nov 20, 2007 1:13 pm

Re: Problemes d'accentuation

Post by gmalol » Tue Nov 20, 2007 2:09 pm

La réponse est peut être là?

http://forum.joomla.org/index.php/topic,141269.0.html

Mais cela ne change rien

merci
joomla 1.0.13 & 1.5.0

merci aux ames de bonne volonté participant à l'open source

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: [réglé] Problèmes d'accentuation

Post by infograf768 » Tue Nov 20, 2007 5:40 pm

Si cela marche avec le template par défault, c'est que votre template est mal codé.

Vérifier que vous avez au début du template (le fichier index.php du template)

Code: Select all

<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );
?>
Puis dans le

Code: Select all

<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />

Le fichier xml du template doit être encodé iso-8559-1, quelque soit l'encodage du site.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

gmalol
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Tue Nov 20, 2007 1:13 pm

Re: [réglé] Problèmes d'accentuation

Post by gmalol » Tue Nov 20, 2007 7:58 pm

Merci pour tous vos conseils.

Le fait été que le fichier était encodé en UTF-8 alors que celui de la template par défaut été en ANSI.

Je l'ai réencoder en ANSI grâce à ultraedit.

Et tout fonctionne maintenant

encore un grand merci pour vos pistes.
joomla 1.0.13 & 1.5.0

merci aux ames de bonne volonté participant à l'open source


Locked

Return to “1.0 - Templates et design”