On Fri, 12 Apr 2002, Bruno Haible wrote: > H. Peter Anvin writes: > > > You'd probably be better off using C-like escape codes \uXXXX and > > \UXXXXXXXX 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 JAVA".
That's nice to know. BTW, in case somebody wants to 'torture' her/his computer/processor for this simple task doable by a Perl one-liner or iconv, (s)he can run the following: native2ascii -encoding UTF-8 file.utf8 file.java native2ascii -reverse -encoding UTF-8 file.java file.utf8 native2ascii comes with JDK. Jungshik Shin -- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/