Der fehlende Schluss-Strich / beim Meta-Tag ist nicht unbedingt nötig (die
Geister streiten sich darüber). Aus meinen Erfahrungen und einem Blick auf
die Datei würde ich sagen, dass das Problem folgendes ist:
Zwar steht die Zeichenkodierung korrekt im Meta-Tag des HTML-Headers
(iso-8859-1), allerdings wurde die HTML-Datei beim Bearbeiten mit dem
Editor nicht als ANSI gespeichert, sondern im UTF-8-Format. Moderne
(HTML-)Editoren unterscheiden normalerweise schon beim Abspeichern der
Datei nach der Zeichenkodierung. Auch wenn man das äußerlich nicht sofort
sieht.
Ein WWW-Browser interpretiert dann das Format, in dem die Datei
gespeichert worden ist und stellt sich auf dieses (im Fall der Checklist:
UTF-8) ein. Der Meta-Tag iso-8859-1 hat dann keinerlei Wirkung mehr.

Short summary in English: I assume, the file has been saved with encoding
UTF-8 - usually any up-to-date editor offers different encodings when
saving a file. The meta tag iso-8859-1 is "overwritten" by the encoding of
the file.
The file clist.html should be saved with the encoding ANSI (or something
like that, but not UTF-8).

Viele Gruesse
Raimar Eberhard


Am Di, 19.02.2008, 20:03, schrieb Niels Grotum:
> Adam Bülow-Jacobsen skrev:
>
>> I have just received Firefox 2.0.0.12 and it displays correctly with
>> ISO 8859-1 on Mac. But there is still an error somewhere, since the
>> browser 'thinks' that it is encoded in Unicode and you have to reset
>> 8859-1 every time. I still cannot make it work with other browsers.
>> Adam
>>
>>
> From a quick glance at the page source, I think there's a slash missing
> in the head: the tag <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1"> should be closed. I guess that could confuse most
> browsers.
>
> ~Niels
>
>

Reply via email to