Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: charset=utf-8 - bbedit



In addition to what others already wrote:

Make sure that you are actually using UTF-8 (without a BOM I think) as the encoding for the file instead of some other default. Doesn't make much difference here but when you start using non-7-bit-ASCII characters it will.


Am 17.07.2006 um 21:06 schrieb Craig Hoffman <email@hidden>:

When I go and view the index page I get errors from Safari Tidy
(http://www.zappatic.net/safaritidy/).  Some of the warnings:
	- plain text isn't allowed in <head> elements
	- <meta> isn't allowed in <body> elements
	- so on...

You can also use BBEdit to check the document: Markup->Check- >Document Syntax. It seems to give similar errors.



It seems there is something wrong with the "content-type" and
"charset", but it looks fine to me.  What am I missing?

Yup, see below.


<!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' xml:lang='en' lang='en'>
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8">

Should be closed like this: <meta http-equiv="content-type" content="text/html; charset=utf-8" />


	<meta name="description" content="" />
	<meta name="keywords" content="" />
	<meta name="copyright" content="" />
	<title>Rutledge Jewerly</title>
	<meta name='generator' content='BBEdit 8.2' />
	<link rel='stylesheet' href='css/style.css' type='text/css'
media='screen' />
</head>
<body>
</body>
</head>

This last line is superflous and wrong. The head element was closed three lines above. Instead you are missing a </html>.



HTH Mike -- Mike Fischer Softwareentwicklung, EDV-Beratung Schulung, Vertrieb Note: I read this list in digest mode! Send me a private copy for faster responses.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/web-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.