From owner-freebsd-doc Wed Apr 19 10:20:58 2000 Delivered-To: freebsd-doc@freebsd.org Received: from ossex1.ossinc.net (OSSEX1.webb.net [207.182.166.15]) by hub.freebsd.org (Postfix) with ESMTP id CD3FD37B7E5 for ; Wed, 19 Apr 2000 10:20:51 -0700 (PDT) (envelope-from mbrown@corp.webb.net) Received: by ossex1.ossinc.net with Internet Mail Service (5.5.2650.21) id <25CH1VFR>; Wed, 19 Apr 2000 11:20:51 -0600 Message-ID: <8D96EDA0AC04D31197B400A0C96C1480F705BE@ossex1.ossinc.net> From: Mike Brown To: "'freebsd-doc@FreeBSD.ORG'" Subject: autodection of encoding vs freebsd.org's docs Date: Wed, 19 Apr 2000 11:20:49 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have my browser (IE 5.0) set to autodetect encodings of documents, which seems like a sensible thing to do. 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 (). Therefore, the browser falls back on its autodetection mechanism, which usually assumes ISO 8859-1 but sometimes decides the document is UTF-7 encoded. It picks UTF-7 if the document contains something that looks like a Modified Base64 sequence as per RFC 2152. The sequence is delimited by "+" and "-" and contains characters from the Base64 alphabet. The browser is not misbehaving in this situation; I think it is reasonable to assume UTF-7 when such sequences are found and no other information is available. An example of such a page is http://www.freebsd.org/ports/www.html which contains things like "apache+ipv6-1.3.11". I suggest either declaring the actual encodings in the documents or configuring the web server to send charset information in the response headers. - Mike ___________________________________________________________ Mike J. Brown, software engineer, Webb Interactive Services XML/XSL stuff: http://www.skew.org/ http://www.webb.net/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message