Syntax: | charset_map |
---|---|
Default: | — |
Context: | http |
Describes the conversion table from one charset to another. A reverse conversion table is built using the same data. Character codes are given in hexadecimal. Missing characters in the range 80-FF are replaced with “?
”. When converting from UTF-8, characters missing in a one-byte charset are replaced with “&#XXXX;
”.
Example:
charset_map koi8-r windows-1251 { C0 FE ; # small yu C1 E0 ; # small a C2 E1 ; # small b C3 F6 ; # small ts ... }
When describing a conversion table to UTF-8, codes for the UTF-8 charset should be given in the second column, for example:
charset_map koi8-r utf-8 { C0 D18E ; # small yu C1 D0B0 ; # small a C2 D0B1 ; # small b C3 D186 ; # small ts ... }
Full conversion tables from koi8-r
to windows-1251
, and from koi8-r
and windows-1251
to utf-8
are provided in the distribution files conf/koi-win
, conf/koi-utf
, and conf/win-utf
.
Please login to continue.