Archive for April, 2012

Tip of the week: recode

Sunday, April 1st, 2012

From the famous tip of the week series: The other day I was wondering what CLI tool I used years ago to mass convert / fixup encoding of text (e.g. program, source code) files and just could not find it, e.g. with googling, … As I just remembered, somehow, accidentally (maybe due to some T2 Linux maintenance work, …) I quickly wanted to share that note: recode. An older piece of software, apparently not updated since 2001, … (!?!?) Easy to use, just like this:

recode latin1..UTF-8 file.txt
recode UTF-16..UTF-8 …
recode cyrillic..utf-8 …

I guess you get the idea, …