1N/A<?
xml version="1.0"?>
1N/A<
name>mod_charset_lite</
name>
1N/A<
description>Specify character set translation or recoding</
description>
1N/A<
status>Experimental</
status>
1N/A<
identifier>charset_lite_module</
identifier>
1N/A <
p>This is an <
strong>experimental</
strong> module and should
1N/A be used with care. Experiment with your
1N/A <
code>mod_charset_lite</
code> configuration to ensure that it
1N/A performs the desired function.</
p>
1N/A <
p><
module>mod_charset_lite</
module> allows the administrator to
1N/A specify the source character set of objects as well as the
1N/A character set they should be translated into before sending to the
1N/A client. <
module>mod_charset_lite</
module> does not translate the
1N/A data itself but instead tells Apache what translation to
1N/A perform. <
module>mod_charset_lite</
module> is applicable to EBCDIC
1N/A and ASCII host environments. In an EBCDIC environment, Apache
1N/A normally translates text content from the code page of the Apache
1N/A process locale to ISO-8859-1. <
module>mod_charset_lite</
module>
1N/A can be used to specify that a different translation is to be
1N/A performed. In an ASCII environment, Apache normally performs no
1N/A translation, so <
module>mod_charset_lite</
module> is needed in
1N/A order for any translation to take place.</
p>
1N/A <
p>This module provides a small subset of configuration
1N/A mechanisms implemented by Russian Apache and its associated
1N/A <
code>mod_charset</
code>.</
p>
1N/A<
section><
title>Common Problems</
title>
1N/A<
section><
title>Invalid character set names</
title>
1N/A <
p>The character set name parameters of <
directive module="mod_charset_lite">CharsetSourceEnc</
directive> and
<
directive module="mod_charset_lite">CharsetDefault</
directive>
must be acceptable to the translation mechanism used by APR on the
system where <
module>mod_charset_lite</
module> 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:</
p>
iconv -f charsetsourceenc-value -t charsetdefault-value
<
section><
title>Mismatch between character set of content and translation
<
p>If the translation rules don't make sense for the content,
translation can fail in various ways, including:</
p>
<
li>The translation mechanism may return a bad return code,
and the connection will be aborted.</
li>
<
li>The translation mechanism may silently place special
characters (
e.g., question marks) in the output buffer when
it cannot translate the input buffer.</
li>
<
name>CharsetSourceEnc</
name>
<
description>Source charset of files</
description>
<
syntax>CharsetSourceEnc <
em>charset</
em></
syntax>
<
contextlist><
context>server config</
context>
<
context>virtual host</
context><
context>directory</
context>
<
context>.htaccess</
context>
<
override>FileInfo</
override>
<
p>The <
directive>CharsetSourceEnc</
directive> directive specifies the
source charset of files in the associated container.</
p>
<
p>The value of the <
em>charset</
em> argument must be accepted
as a valid character set name by the character set support in
APR. Generally, this means that it must be supported by
CharsetSourceEnc UTF-16BE<
br />
CharsetDefault ISO8859-1<
br />
<
p>The character set names in this example work with the iconv
translation support in Solaris 8.</
p>
<
name>CharsetDefault</
name>
<
description>Charset to translate into</
description>
<
syntax>CharsetDefault <
em>charset</
em></
syntax>
<
contextlist><
context>server config</
context>
<
context>virtual host</
context><
context>directory</
context>
<
context>.htaccess</
context>
<
override>FileInfo</
override>
<
p>The <
directive>CharsetDefault</
directive> directive specifies the
charset that content in the associated container should be
<
p>The value of the <
em>charset</
em> argument must be accepted
as a valid character set name by the character set support in
APR. Generally, this means that it must be supported by
CharsetSourceEnc UTF-16BE<
br />
CharsetDefault ISO8859-1<
br />
<
name>CharsetOptions</
name>
<
description>Configures charset tranlation behavior</
description>
<
syntax>CharsetOptions <
em>option</
em> [<
em>option</
em>] ...</
syntax>
<
default>CharsetOptions <
em>DebugLevel=0</
em>
<
em>NoImplicitAdd</
em></
default>
<
contextlist><
context>server config</
context>
<
context>virtual host</
context><
context>directory</
context>
<
context>.htaccess</
context>
<
override>FileInfo</
override>
<
p>The <
directive>CharsetOptions</
directive> directive configures certain
behaviors of <
module>mod_charset_lite</
module>. <
em>Option</
em> can
<
dt>DebugLevel=<
em>n</
em></
dt>
<
dd>The <
code>DebugLevel</
code> keyword allows you to specify
the level of debug messages generated by
<
module>mod_charset_lite</
module>. By default, no messages are
generated. This is equivalent to <
code>DebugLevel=0</
code>.
With higher numbers, more debug messages are generated, and
server performance will be degraded. The actual meanings of
the numeric values are described with the definitions of the
DBGLVL_ constants near the beginning of
<
dt>ImplicitAdd | NoImplicitAdd</
dt>
<
dd>The <
code>ImplicitAdd</
code> keyword specifies that
<
module>mod_charset_lite</
module> should implicitly insert its
filter when the configuration specifies that the character
set of content should be translated. If the filter chain is
explicitly configured using the AddOutputFilter directive,
<
code>NoImplicitAdd</
code> should be specified so that
<
module>mod_charset_lite</
module> doesn't add its filter.</
dd>