Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

META CONTENT-TYPE seems to be ignored

  • 2 réponses
  • 1 a ce problème
  • 1 vue
  • Dernière réponse par cor-el

more options

When a web site specifies META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=Windows-1254 in the page header, and I load that page, I see that the View -> Text Encoding -> is set for Unicode.. And the page appears broken.. Shouldn't old web sites like this "appear" normally if they specified the charset in the header? If I manually select "Automatic" in the View->Text Encoding menu. then THAT page appears fine, but as soon as I click something else on the same site, the story repeats -- back to Unicode and broken characters, even though every page of the web site specifies Windows-1254 as the encoding.

When a web site specifies META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=Windows-1254 in the page header, and I load that page, I see that the View -> Text Encoding -> is set for Unicode.. And the page appears broken.. Shouldn't old web sites like this "appear" normally if they specified the charset in the header? If I manually select "Automatic" in the View->Text Encoding menu. then THAT page appears fine, but as soon as I click something else on the same site, the story repeats -- back to Unicode and broken characters, even though every page of the web site specifies Windows-1254 as the encoding.

Toutes les réponses (2)

more options

I have an old page that specifies

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

and Firefox shows View > Text Encoding > Western as expected. But that's also my default for U.S. English so it doesn't prove that Firefox followed the tag.

Can you provide a link to a page that demonstrates the problem? Posting a clickable link can delay the appearance of your reply while the post sits in the link spam moderation queue. You can break the link before the .com (or other top level domain) so the link isn't clickable.

more options

Note that it is possible that the server sends the files as Unicode utf-8 as is common these days and in that case the server likely prevails and the meta tag can be ignored.