berdan

Consumer of information, collector of ideas.

Contact me at
XMPP: berdan@jabber.org
ICQ: 39937506
Mail: berdan@ludd.ltu.se
twitter: @berdan

Converting GeekTool output

I sometimes have to handle fancy Nordic characters (åäö) in my GeekTool setup and by default GeekTool has problems handling UTF-8. The solution appears to be to convert the output of the console commands to ucs-2-internal before displaying it:

foo | iconv -f utf-8 -t ucs-2-internal