Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Apr 2000 14:51:57 -0700
From:      Doug Barton <DougB@gorean.org>
To:        Mike Brown <mbrown@corp.webb.net>
Cc:        "'freebsd-doc@FreeBSD.ORG'" <freebsd-doc@FreeBSD.ORG>
Subject:   Re: autodection of encoding vs freebsd.org's docs
Message-ID:  <3903707D.D3D7019D@gorean.org>
References:  <8D96EDA0AC04D31197B400A0C96C1480F705BE@ossex1.ossinc.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Mike Brown wrote:
> 
> I have my browser (IE 5.0) set to autodetect encodings of documents, which
> seems like a sensible thing to do.

	Only if you regularly view web pages that have different encodings, and
you are equipped to view them properly. 

> The HTML documents on the freebsd.org site tend to fail to have any encoding
> declarations in the HTTP headers (Content-Type: text/html;charset=foo) or in
> the document HEAD (<meta http-equiv="Content-Type"
> content="text/html;charset=foo">).

	The web pages should have an ISO encoding stated explicitly in any
case. That's the most recent "best practice," related both to the
growing internationalization (a good thing, don't get me wrong) and to
help combat the cross-domain CGI security problem that was highlighted
by CERT recently. The proper format is:

<!doctype ... >
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
   <title>Foo</title>
</head>

	Obviously the other charsets for the translated documents should
specify their appropriate encoding. (Indenting is of course, optional.)

HTH,

Doug


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3903707D.D3D7019D>