Re: UTF-8 to ISO 8859-1 tool
Hugo Vanwoerkom 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? 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. You could use paps (now in unstable) instead of a2ps. It understands UTF-8. Regards, Jan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
UTF-8 to ISO 8859-1 tool
Hi, 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? 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. Thanks! H -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: UTF-8 to ISO 8859-1 tool
On Thursday 04 May 2006 13:48, Hugo Vanwoerkom wrote: Hi, 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? 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. Thanks! H use recode : recode u8..l1 wil do what you want. jmt -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: UTF-8 to ISO 8859-1 tool
On 2006-05-04, Hugo Vanwoerkom [EMAIL PROTECTED] 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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: UTF-8 to ISO 8859-1 tool
Adam Funk wrote: On 2006-05-04, Hugo Vanwoerkom [EMAIL PROTECTED] 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! 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... H -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: UTF-8 to ISO 8859-1 tool
On 2006-05-04, Hugo Vanwoerkom [EMAIL PROTECTED] wrote: 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... I'm glad it worked! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]