2004-08-19 20:27:05 -04:00
|
|
|
|
|
|
|
@SYNTAX:recode@
|
|
|
|
|
|
|
|
RECODE
|
|
|
|
%|List the conversion database
|
|
|
|
|
2005-08-11 09:07:17 -04:00
|
|
|
RECODE ADD %|[<tag>]|[[<tag>/]<target>] <charset>
|
2005-07-24 15:16:14 -04:00
|
|
|
%|Add an entry to the conversion database (if tag or target is
|
|
|
|
omitted, the current channel or query will be used). You can specify
|
|
|
|
the <tag> to have different charsets for the same <target> for
|
|
|
|
different networks. You can omit the target, and specify only the tag
|
|
|
|
if you want to add an entry for the network.
|
|
|
|
|
|
|
|
RECODE REMOVE %|[<tag>|<target>]
|
|
|
|
%|Remove an entry from the conversion database (if tag or target is
|
2004-08-19 20:27:05 -04:00
|
|
|
omitted, the current channel or query will be used)
|
|
|
|
|
2004-09-15 08:11:43 -04:00
|
|
|
To specify your local charset you have to set term_charset
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
/SET term_charset <charset>
|
|
|
|
|
|
|
|
To see the recode settings: /SET recode
|
|
|
|
|
|
|
|
You can change them with /SET
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
2005-06-29 03:47:45 -04:00
|
|
|
/SET recode OFF
|
|
|
|
to turn off recode completely
|
|
|
|
|
2004-09-15 08:11:43 -04:00
|
|
|
/SET recode_fallback <charset>
|
|
|
|
to set the fallback charset for incoming events
|
|
|
|
|
2004-09-20 08:45:49 -04:00
|
|
|
This charset is used if your term_charset is UTF-8
|
|
|
|
and the conversion for the target is not set and
|
|
|
|
the text is not UTF-8.
|
2004-09-15 08:11:43 -04:00
|
|
|
|
|
|
|
/SET recode_out_default_charset <charset>
|
|
|
|
to set the global outgoing charset
|
|
|
|
|
2004-09-20 08:45:49 -04:00
|
|
|
When it's set to a charset it will be used
|
|
|
|
if no conversion for the target is set.
|
2004-09-15 08:11:43 -04:00
|
|
|
|
|
|
|
/SET recode_transliterate ON
|
|
|
|
to enable the global transliteration.
|
|
|
|
|
|
|
|
The transliteration is based on your locale settings,
|
|
|
|
if it doesn't work properly your locale settings may be wrong.
|
|
|
|
You can enable it per target by adding //TRANSLIT to the <charset>
|
|
|
|
|
2005-11-07 14:06:42 -05:00
|
|
|
/SET recode_autodetect_utf8 OFF
|
|
|
|
to turn automatic UTF-8 detection off.
|
|
|
|
|
2004-09-15 08:11:43 -04:00
|
|
|
Hint: <charset> can be almost everything listed by 'iconv -l'
|
|
|
|
|
2004-12-20 08:59:15 -05:00
|
|
|
See also: NETWORK
|
|
|
|
|