Forum Moderators: open
[edited by: ChanandlerBong at 3:38 am (utc) on Sep 17, 2012]
Always declare the encoding of your document. Use the HTTP header if you can. Always use an in-document declaration too.
<!DOCTYPE html>
<HTML>
<HEAD>
Content-Type: text/html; charset=UTF-8
<meta charset="UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" charset=utf-8"> This:
<meta charset="UTF-8">
locally, is getting the file opened as plain text. Page info gives "text/plain" as Type.
<meta http-equiv="Content-Type" charset=utf-8">
<meta http-equiv="Content-Type" charset=utf-8">
Timestamp: 17/09/12 3:10:32 PM
Error: An unsupported character encoding was declared for the HTML document using a meta tag. The declaration was ignored.
<HTML>
<HEAD>
<meta charset="UTF-8"> Error: The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must to be declared in the document or in the transfer protocol.
<!DOCTYPE html>
<html>
<head>
<title>Test Page</title>
<meta charset="UTF-8">
</head>
<body>
hello world.
</body>
</html> it's an encoding issue not a rendering issue
Is my PC haunted?
when I put a html 4.01 content-type meta tag into one of these pages being rendered as plain text, they then showed as html. Then when I take out the content-type meta tag and put back in the html charset definition, it still renders fine as html. I presume that's caching
found the following characters at the very start of the file ...