Re: UTF-8 file to ASCII file converter

2002-04-12 Thread Vasilis Vasaitis
On Thu, Apr 11, 2002 at 12:04:18AM -0700, Pedro Ferreira wrote: I already have a perl script (thanks to Oyvind A. Holm) that converts an ascii file with U+ unicode codes to an utf-8 file. Now I would like to do the oposite, convert an utf-8 file to an ascii file, each utf-8 character

Re: UTF-8 file to ASCII file converter

2002-04-12 Thread jshin
On Fri, 12 Apr 2002, Bruno Haible wrote: H. Peter Anvin writes: You'd probably be better off using C-like escape codes \u and \U with \ escaped as \\. And when you use this C/Java syntax, you get the converter for free: it is contained it libiconv. Try iconv -f UTF-8 -t

Re: UTF-8 file to ASCII file converter

2002-04-12 Thread jshin
On Fri, 12 Apr 2002, Vasilis Vasaitis wrote: On Thu, Apr 11, 2002 at 12:04:18AM -0700, Pedro Ferreira wrote: Now I would like to do the oposite, convert an utf-8 file to an ascii file, each utf-8 character would be encoded back to U+. Many thanks in advance for any Just like in the

Re: UTF-8 file to ASCII file converter

2002-04-12 Thread James H. Cloos Jr.
Bruno == Bruno Haible [EMAIL PROTECTED] writes: Bruno And when you use this C/Java syntax, you get the converter for Bruno free: it is contained it libiconv. Try iconv -f UTF-8 -t JAVA. Cool. But when was that addded? iconv (GNU libc) 2.2.4 as included in SuSE 7.3's glibc-2.2.4-64.i386.rpm

Re: UTF-8 file to ASCII file converter

2002-04-12 Thread Vasilis Vasaitis
On Fri, Apr 12, 2002 at 11:11:41AM -0400, [EMAIL PROTECTED] wrote: On Fri, 12 Apr 2002, Vasilis Vasaitis wrote: Just like in the case of the opposite conversion, this conversion can also be easily achieved with an one-liner. The following seems to be able to do the job: perl -ne