W3C home > Mailing lists > Public > www-international@w3.org > July to September 2004

Re: Q: How to define charset encoding of Apache2/httpd.conf itself

From: John Cowan <jcowan@reutershealth.com>
Date: Wed, 1 Sep 2004 12:28:50 -0400
To: "Handwerker, Reinhard (ISS Atlanta)" <RHandwerker@iss.net>
Cc: www-international@w3.org
Message-ID: <20040901162850.GI15630@skunk.reutershealth.com>

Handwerker, Reinhard (ISS Atlanta) scripsit:

> How and where is the internal encoding of httpd.conf declared?

http://archive.apache.org/gnats/10125 says that on Windows the implicit
encoding of httpd.conf is always UTF-8 (at least on Apache 2.x), since
the low-level Apache Portable Runtime assumes all incoming pathnames
are UTF-8 and translates accordingly.

On Unix, FWIW, there's no issue, since Unix pathnames are byte sequences,
not character strings.  The bytes 0x00 and 0x2F are magic, but all other
bytes are equal, and if they happen to be interpretable as a particular
character encoding, that's useful for UI purposes but not required.
So on Unix, what matters is that the bytes in the config file match the
bytes in the pathnames.

Kudos to Sean Palmer, who ran this to earth for me.

-- 
All Gaul is divided into three parts: the part          John Cowan
that cooks with lard and goose fat, the part            www.ccil.org/~cowan
that cooks with olive oil, and the part that            www.reutershealth.com
cooks with butter. -- David Chessler                    jcowan@reutershealth.com
Received on Wednesday, 1 September 2004 16:28:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 19:17:03 GMT