summaryrefslogtreecommitdiffstats
path: root/content/posts/utf8-irssi-madness.rst
blob: fb86115383af42949b87794d26c510c73e81e7bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Utf8 in an Irssi/tmux/putty/windows Stack
#########################################
:date: 2012-06-22 00:00
:tags: irssi, utf8

Getting irssi running with utf8 support in a putty/tmux stack is madness. Here
is what you have to do.

add lines in .{ba,z}shrc:
    
.. code-block:: bash

    export LANG=en_US.utf8
    export LC_ALL=en_US.utf8

add lines in .tmux.conf:
.. code-block:: bash

    set-option -g default-terminal "rxvt"
    set-window-option -g utf8 on

in irssi:
.. code-block:: bash
    
    /set term_charset UTF-8
    /set recode_autodetect_utf8 ON
    /set recode_fallback UTF-8
    /set recode ON
    /set recode_out_default_charset UTF-8
    /set recode_transliterate ON
    /save
    /quit

in putty config:
.. code-block:: bash 

    window -> translation -> Received data assumed to be in which character set: UTF-8
                          -> Use Unicode line drawing code points