Roozbeh Pournader wrote on 2001-05-08 18:29 UTC:
> Well, this is rather a newbie question. We were trying to use glibc 2.2's
> iconv to convert an input UTF-8 stream to our internal UCS4. But it came
> out that it gives us little-endian UCS4 instead of a big-endian one we
> needed for internal processing on our PC. Which of the following solutions
> is better/more beautiful/more portable/etc?

The iconv 2.2.2 that is shipping at the moment with Red Hat 7.1 supports

  UCS-2, UCS-2BE, UCS-2LE, UCS-4, UCS-4BE, UCS-4LE
  UTF-7, UTF-8, UTF-16, UTF-16BE, UTF-16LE,
  WCHAR_T

Looks rather comprehensive to me. Just use that. In case of doubt,
upgrade glibc.

Markus

-- 
Markus G. Kuhn, Computer Laboratory, University of Cambridge, UK
Email: mkuhn at acm.org,  WWW: <http://www.cl.cam.ac.uk/~mgk25/>

-
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/lists/

Reply via email to