Utf8 unicode bash screen irssi

From TykWiki
Revision as of 20:51, 19 September 2012 by Tykling (talk | contribs) (Created page with "= Background = I am very fond of using irssi running in a screen as IRC client. I am on a wide range of IRC channels ranging from personal channels with friends to a bunch of ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Background

I am very fond of using irssi running in a screen as IRC client. I am on a wide range of IRC channels ranging from personal channels with friends to a bunch of opensource project channels. Some IRC channels I am in have a lot of UTF-8 content, for example #musicbrainz on Freenode.

This page is how I remember what to configure to get UTF-8 working on FreeBSD :)

Bash

The following lines in ~/.bash_profile make bash behave properly with UTF-8:

export LC_ALL=da_DK.UTF-8
export LANG=da_DK.UTF-8

With a properly configured SSH client (see below), this is all I need to be able to enter Danish characters or paste UTF-8 text from wikipedia.

Screen / Irssi

I haven't touched my screen or irssi config to make this work. After bash got sorted it all just kindof worked.

Clients

PuTTy

When using PuTTy as SSH client I also go to Window -> Translation and set Received data assumed to be in which character set dropdown to UTF-8.