Reply to Re: Pb with characters ISO-8859-1

Your name:

Reply:


Posted by Ben C on 10/11/07 20:52

On 2007-10-11, Tschuί <fleguen@gmail.com> wrote:
> Hi,
>
> I have a personal site (www.excel-exercice.com) but I have a big pb
> with the special characters like ι ΰ (espacially in french)
> I have write in my header <meta http-equiv="Content-Type"
> content="text/html; charset=iso-8859-1" lang="fr"> but it doesn't
> work.

I doubt that the lang attribute on a meta element does anything (since
it has no content, and isn't rendered). But never mind, that's not the
main problem here.

> You can see the pb by visiting the site and change the language (by
> clicking on the flag)
>
> How could give me an explanation ?

It's because the server is delivering those pages with this header:

Content-Type: text/html; charset=UTF-8

The server header trumps the meta element.

Your text does appear to be encoded in ISO-8859-1, not UTF-8.

So, two solutions: either change the server to put charset=ISO-8859-1 in
the header instead, or transcode your pages so they are UTF-8 (and
change or delete the meta elements-- it will still work if you don't,
but will cause confusion in future to anyone reading the source).

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация