Re: UTF-8 to ISO 8859-1 tool
On 2006-05-04, Hugo Vanwoerkom <hvw59601@care2.com> wrote:
> 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!
HTH,
Adam
Reply to: