HTML5 question
- Started
- Last post
- 12 Responses
- Raniator
I've put together a holding page using Adobe Muse and when I use a HTML5 validation page, I get the following warning and error to say it's not compliant:
1. Warning: Using windows-1252 instead of the declared encoding iso-8859-1.
2. Error: Internal encoding declaration utf-8 disagrees with the actual encoding of the document (windows-1252).
From line 5, column 3; to line 5, column 69
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8"/>Can anyone help with what it means and how I can correct it?
Cheers.
- ideaist0
http://bigkidsdidit.co.uk/html5-…
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
</head>
- Raniator0
Ahhh, that makes sense. Cheers!
I'm pretty crap with web stuff – as you can probably tell.
- Raniator0
Changed that, still getting the same messages :(
- Raniator0
Using windows-1252 instead of the declared encoding iso-8859-1.
Line 6, Column 26: Internal encoding declaration utf-8 disagrees with the actual encoding of the document (windows-1252).
<meta charset="UTF-8" />It's the iso-8859-1 bit confusing me – I don't want Latin!!!
- dijitaq0
check your browser encode settings?
- vaxorcist0
those character sets are not that important for your layout,
those character set things are one reason why you see so many ?'
s instead of apostrophes in some websites, etc....and charsets...your text, and shit like m-dashes, accents, apostrophes, smart quotes, other such crap from MS-Turd, and otheer "word-processors"..
- mekk0
ouch ouch ouch. Please do not talk about the five until you know what you're on.
Check your doctype and write code for the defined standard. I bet 4.01 will do fine.Put this in your first line:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- Raniator0
Mekk... I get where you are coming from, but like I say I'm using Muse and that published HTML 5. Yes there are alternatives, and yes I should probably learn from the beginning. But I'm not going to, so I'm stuck with this.
I'm going with what Vaxorcist said and not going to worry about it.
Cheers to Ideaist too, I've bookmarked those sites.
- Raniator0
What is wrong with this:
<!DOCTYPE html>
<html>
<head><meta http-equiv="Content-type" content="text/html;charset=UTF-8"/>
I've tried doing what ideaist suggested and still get the error messages.
My browsers seem to think the site is Western ISO-8859-1 even though it clearly says UTF-8.
What gives?
- uan0
your file could have the encoding. the text file (.html). check in the text editor you are working.
- the encoding the file is written in. must be this.uan
- yeah, i think we're all assuming he's using a server, but it could be this...kingsteven
- Sorry... what?Raniator
- the file encoding.
you specify that when you save your text file.uan - Not in Muse you don't. Unless I missed something...
Raniator
- kingsteven0
you can also set the charset in the http header (ie. how your server delivers the document) for example with php:
< ?php header('Content-Type: text/plain; charset=ISO-8859-1'); ? >
but i think the meta tags are meant to override that, you can also force a charset in your browser (View -> Encoding) in Chrome... having the wrong charset in your DB shouldn't cause that error (but would result in fucked up text etc.)
I found this article useful for debugging a charset issue recently http://www.phpwact.org/php/i18n/… ... I eventually found i was being a dumb fuck and had multiple charset meta tags.
- dbloc0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head><body>
</body>
</html>