Apache HTTP Server Version 2.4
Description: | Specify character set translation or recoding |
---|---|
Status: | Extension |
Module Identifier: | charset_lite_module |
Source File: | mod_charset_lite.c |
mod_charset_lite
allows the server to change
the character set of responses before sending them to the client.
In an EBCDIC environment, Apache always translates HTTP protocol
content (e.g. response headers) from the code page of the Apache
process locale to ISO-8859-1, but not the body of responses. In
any environment, mod_charset_lite
can be used to
specify that response bodies should be translated. For example,
if files are stored in EBCDIC, then
mod_charset_lite
can translate them to
ISO-8859-1 before sending them to the client.
This module provides a small subset of configuration
mechanisms implemented by Russian Apache and its associated
mod_charset
.
The character set name parameters of CharsetSourceEnc
and
CharsetDefault
must be acceptable to the translation mechanism used by
APR on the system where
mod_charset_lite
is deployed. These character
set names are not standardized and are usually not the same as
the corresponding values used in http headers. Currently, APR
can only use iconv(3), so you can easily test your character set
names using the iconv(1) program, as follows:
iconv -f charsetsourceenc-value -t charsetdefault-value
If the translation rules don't make sense for the content, translation can fail in various ways, including:
Description: | Charset to translate into |
---|---|
Syntax: | CharsetDefault charset |
Context: | server config, virtual host, directory, .htaccess |
Override: | FileInfo |
Status: | Extension |
Module: | mod_charset_lite |
The CharsetDefault
directive specifies the
charset that content in the associated container should be
translated to.
The value of the charset argument must be accepted as a valid character set name by the character set support in