This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: using iconv for conversion from/to Unicode
- To: linux-utf8 at nl dot linux dot org
- Subject: Re: using iconv for conversion from/to Unicode
- From: Markus Kuhn <Markus dot Kuhn at cl dot cam dot ac dot uk>
- Date: Wed, 15 Mar 2000 10:10:46 +0000
- cc: libc-alpha at sourceware dot cygnus dot com
Bruno Haible wrote on 2000-03-14 13:51 UTC:
> "UCS-2-INTERNAL" would not be hard to implement: This is just a #ifdef
> choice between "UNICODEBIG" and "UNICODELITTLE", both already implemented
> in glibc.
Ulrich, Bruno,
Instead of inventing your own names for encodings, please use the exact
official names defined in Unicode Technical Report #17 and
ISO 10646-1:2000. This means making the following changes:
"UNICODEBIG" -> "UCS-2BE"
"UNICODELITTLE" -> "UCS-2LE"
"UCS-2-INTERNAL" -> "UCS-2"
If the implementation can handle surrogates, then better use "UTF-16BE",
"UTF-16LE", "UTF-16" instead.
Using the official encoding names will make it *much* more likely that
they can be used compatibly across platforms in the future.
References:
Unicode Technical Report #17: Character Encoding Model, 1999-11-23,
http://www.unicode.org/unicode/reports/tr17/
Markus
--
Markus G. Kuhn, Computer Laboratory, University of Cambridge, UK
Email: mkuhn at acm.org, WWW: <http://www.cl.cam.ac.uk/~mgk25/>