• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Charset Einstellung

Beach117

Neues Mitglied
Hallo zusammen,

ich denke mir das diese Frage sicherlich schonmal gestellt wurde, doch ich konnte nichts zutreffendes bei der Suche finden.

Ich schreibe gerade eine kleine Seite und habe das ganze im Coda (MAC) programmiert.
Habe das ganze im Editor unter "Unicode-UTF-8" abgespeichert - was auch als Standard angegeben war.
Mein Head Bereich sieht so aus :

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="images/favicon.ico" />
<meta http-equiv="Content-Script-Type" content="text/javascript" /> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

Doch leider werden im Browser meine Umlaute nicht angezeigt nur wenn ich den Browser (Chrome) auf UNICODE UTF-8 umstelle.

Hatte das ganze auch schon mit ISO 8859-1 probiert, klappt aber auch nicht :-?

Wäre sehr dankbar über Hilfe und eine Lösung.

Vielen Dank im Voraus.

Gruß
 
Werbung:
Unter The W3C Markup Validation Service sagt er mir folgendes :

Notes and Potential Issues

The following notes and warnings highlight missing or conflicting information which caused the validator to perform some guesswork prior to validation, or other things affecting the output below. If the guess or fallback is incorrect, it could make validation results entirely incoherent. It is highly recommended to check these potential issues, and, if necessary, fix them and re-validate the document.
Character Encoding mismatch!

The character encoding specified in the HTTP header (iso-8859-1) is different from the value in the <meta> element (utf- 8 ). I will use the value from the HTTP header (iso-8859-1) for this validation.


Was mache ich nur falsch? :shock:
 
Der HTTP Header, wird von deinem Server gesendet und hat nichts mit dem HTML Code zu tun. Er überschreibt die meta Angabe im HTML Code.

Du musst deinen Server entsprechend umkonfigurieren. Am einfachsten über die Date .htaccess: Setting charset in htaccess

Das lassen aber nicht alle Hoster zu.
 
Werbung:
Werbung:
Zurück
Oben