I have a bunch of text files that are encoded in ISO-8851-2 (have some polish characters). Is there a command line tool for linux/mac that I could run from a shell script to convert this to a saner utf-8?
Thanks! I knew it'd be easier than I thought!
Marcin
2010-04-27 15:25:30
A:
recode latin2..utf8 myfile.txt
This will overwrite myfile.txt
with the new version. You can also use recode without a filename as a pipe.
legoscia
2010-04-27 15:32:57
+3
A:
From the command line use
iconv -f LATIN1 -t UTF8
You may want to add //TRANSLIT
to UTF8
.
lhf
2010-04-27 15:48:03