Why do accented characters look wrong on my website but display correctly in the editor?

Ce contenu n'est disponible qu'en roumain et en anglais ; le texte anglais est affiché ci-dessous.

Why do accented characters look wrong on my website but display correctly in the editor?

There is most likely a mismatch between the content’s encoding and the encoding declared by your website. Check that the page is served with UTF-8 in the HTTP header and that the HTML declaration matches. Save your source files as UTF-8 too.

If only text retrieved from the database is affected, check the character sets used by the connection and the tables. Before converting anything, export the database and test the change on a copy. Changing the encoding declaration will not automatically repair text that was already stored incorrectly; you may need to correct it or import it again from the original source.

QUESTIONS SIMILAIRES

Voici quelques questions dont les réponses pourraient vous intéresser. Nous répondons aux questions importantes et pratiques de nos clients.

ABONNEZ-VOUS À LA NEWSLETTER

Abonnez-vous à notre newsletter. Nous l’utilisons uniquement pour les informations importantes.

Illustration abonnement à la newsletter