2022-04-25 19:34:35 +02:00

63 lines
1.9 KiB
Plaintext

# recode
<!-- comment
Please submit changes to
- https://github.com/ailin-nemui/irssi/blob/master/docs/help/in/recode.in
- https://github.com/ailin-nemui/irssi/blob/master/src/fe-common/core/fe-recode.c
endcomment -->
## Syntax ##
<div class="irssisyntax highlight"><pre style="\-\-cmdlen:5ch"><code><span class="synB">RECODE</span></code></pre></div>
<div class="irssisyntax highlight"><pre style="\-\-cmdlen:10ch"><code><span class="synB">RECODE</span> <span class="synB">ADD</span> <span class="syn10">[<span class="syn14">[<span class="syn13">&lt;tag></span><span class="synB">/</span>]</span><span class="syn09">&lt;target></span>]</span> <span class="synB05">&lt;charset></span></code></pre></div>
<div class="irssisyntax highlight"><pre style="\-\-cmdlen:13ch"><code><span class="synB">RECODE</span> <span class="synB">REMOVE</span> <span class="syn10">[<span class="syn09">&lt;target></span>]</span></code></pre></div>
## Parameters ##
| | |
| --- | --- |
| `ADD`: | Adds an entry into the conversion database. |
| `REMOVE`: | Removes an entry from the conversion database. |
The network tag and channel or nickname to add or remove; if no target is
given, the active nickname or channel will be used.
## Description ##
Recodes the data transmitted to and received from nicknames and channels
into a specific charset.
To get a list of supported charsets on your system, you can generally use
the 'iconv -l' command.
## Examples ##
/RECODE
/RECODE ADD liberachat/mike utf-8
/RECODE ADD #korea euc-kr
/RECODE REMOVE #korea
## Special Examples ##
/SET term_charset utf-8
/SET recode_fallback ISO-8859-15
/SET recode_out_default_charset ISO-8859-15
/TOGGLE recode_transliterate
/TOGGLE recode_autodetect_utf8
## See also ##
[CONNECT](/documentation/help/1.3/connect), [MSG](/documentation/help/1.3/msg), [NETWORK](/documentation/help/1.3/network), [SERVER](/documentation/help/1.3/server)