Utf8 unicode bash screen irssi: Difference between revisions

From TykWiki
Jump to navigationJump to search
(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 ...")
 
Line 2: Line 2:
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.  
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 :)
This page is how I remember what to configure to get UTF-8 working in irssi in screen on FreeBSD :)


== Bash ==
== Bash ==

Revision as of 23:15, 19 September 2012

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 in irssi in screen 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.