Newsgroups: gmane.linux.debian.user Date: Thu, 4 May 2006 14:18:21 +0200
> What editor can change UTF-8 to ISO 8859-1?
use recode :
recode u8..l1
wil do what you want.
jmt
> What editor can change UTF-8 to ISO 8859-1? > Running Debian Sarge. Oo doesn't seem to. MC doesn't know what's what. > Who?
$ iconv -f UTF-8 -t ISO8859-1 foo.html >foo.latin1.html
You could do the conversion with emacs, but the above method is more suitable for batch processing. I think this would cut out a step for printing:
$ iconv -f UTF-8 -t ISO8859-1 foo.html |a2ps
> Rationale: I change html pages to text to print with a2ps. But then all > accents show up as "garbage" utf-8 sequences. It seems to "know" ISO 8859-1.
What locale are you running? I think you could try the following:
$ LANG=en_GB.UTF-8 a2ps foo.html
or
$ export LANG=en_GB.UTF-8 $ a2ps foo.html $ a2ps bar.html
Please post what works or doesn't work!
Adam Funk
> Please post what works or doesn't work!
Thanks Adam!
iconv -f UTF-8 -t ISO_8859-15 chikung.txt > chikung.converted.txt
does the ticket.
I don't print html pages with a2ps because it uses too much ink + paper:
iconv -f UTF-8 -t ISO_8859-15 chikung.txt | a2ps --medium=Letterdj -o chikung.ps
does the job in one step. I'll make that an mc immediate command…
Hugo Vanwoerkom