Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Problème caractères accentués

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French
View previous topic :: View next topic  
Author Message
kits6
Smarty n00b


Joined: 25 Feb 2007
Posts: 2

PostPosted: Sun Feb 25, 2007 4:15 pm    Post subject: Problème caractères accentués Reply with quote

Bonjour,

Utilisant Smarty depuis quelques semaines, je ne sais pas (encore) résourdre mes problèmes d'affichage des caractères accentués.

Est-ce que l'un d'entre vous peut m'expliquer pourquoi en mettant dans mon template
Code:
<p>Les v&eacute;hicules proposés </p>

j'obtiens à l'affichage
Quote:
Les véhicules proposés

?

Existe t il un moyen, une configuration pour que smarty affiche directement les caractères accentués ?

Merci par avance.
Back to top
View user's profile Send private message
Toffi
Smarty n00b


Joined: 14 Feb 2007
Posts: 4

PostPosted: Mon Feb 26, 2007 3:00 pm    Post subject: Reply with quote

Les caractères accentués sont gérés par ton navigateur. Il utilise un encodage par défaut.

Pour être sûr de l'encodage des caractères de ta page, ajoutes dans ton header le meta-tag suivant :

Code:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
Back to top
View user's profile Send private message
kits6
Smarty n00b


Joined: 25 Feb 2007
Posts: 2

PostPosted: Mon Feb 26, 2007 8:44 pm    Post subject: Reply with quote

Bonsoir Toffi,

En effet, cela fonctionne.
J'utilisais dans le header:

Code:
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-15"/>


J'avais lu qu'il fallait utiliser celui là de préférence....

Merci Smile [/quote]
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: 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


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP