Ändrade till:
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
istället för:
<meta http-equiv="content-type" content="text/html; charset=utf-8">
5 svar · 429 visningar · startad av Sjodahl
Får detta när jag försöker validera ;)
Sorry, I am unable to validate this document because on line 36, 47 it contained one or more bytes that I cannot interpret as utf-8 (in other words, the bytes found are not valid values in the specified Character Encoding). Please check both the content of the file and the character encoding indication.
Ändrade till:
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
istället för:
<meta http-equiv="content-type" content="text/html; charset=utf-8">
Sjodahl skrev:
Ändrade till:
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">istället för:
<meta http-equiv="content-type" content="text/html; charset=utf-8">
Ja, vill du använda en viss charset så måste du också skriva och spara filen med det charset'et, annars blir det inte rätt. ;) Alternativet är att använda entities för tecken som inte stämmer med angivet charset, t.ex. åäö.
Vad menar du med att skriva och spara filen? Måste jag ha en fil som heter utf-8 i mappen?
Nej, han menar att när du sparar filen du pillar i, t.ex. index.html, så måste du spara den med "encoding" för utf-8. Öppna en fil i t.ex. Notepad och kolla vad det står under fliken "Kodning".
aha.. ;)
Vad noga det skall vara då, tackar!