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

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 UTC