[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Conversion of UTF-16 to UTF-8: For god sakes help
On Fri, 6 Jun 2003, Edward H Trager wrote:
> On Fri, 6 Jun 2003, Bernhard Kaindl wrote:
> > On Fri, 6 Jun 2003 Edward.S.Hudnall@xxxxxxxxxx wrote:
> > >
> > > > Is there a way? Can you point me in the right direction? I need to
> > > > convert just one-page to an 8-bit format so LYNX browsers can use it.
> > iconv --from-code UTF-16 --to-code UTF-8 inputfile >outputfile
If you want to specify the endianness explicitly, you can add 'LE' and
'BE'.
> "uniconv", distributed with Yudit, should also do the job.
> http://eyegene.ophthy.med.umich.edu/unicode/#convutil
So do Perl Encode module and native2ascii distributed with JDK. See
'man Encode' and 'man encoding' if you have Perl 5.8 installed.
In case of native2ascii, you have to chain two together.
native2ascii -encoding UTF-16 input | \
native2ascii -reverse -encoding UTF-8 > output
See
http://java.sun.com/j2se/1.4.1/docs/tooldocs/solaris/native2ascii.html
Jungshik
--
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/